0 votes
in ECMAScript by

What will be printed if the following code is executed?

let x=150;

if(x>100)

{

x=1;

}

console.log(x);

(1)1

(2)150

(3)Error

(4)100

1 Answer

0 votes
by
answer is 1

Related questions

0 votes
asked Mar 13 in JavaScript by DavidAnderson
0 votes
asked Jan 21, 2020 in ECMAScript by GeorgeBell
...