Guess the output!
var a;
if(x=1) console.log("1"); else console.log("0");
var a;
if(x=1) console.log("1"); else console.log("0");
Anonymous Quiz
45%
0
40%
1
8%
01
8%
10
let length = 0;
for(let ch of 'Code')
if(ch>'a' && ch<'z') length++; console.log(length);
for(let ch of 'Code')
if(ch>'a' && ch<'z') length++; console.log(length);
Anonymous Quiz
29%
2
29%
3
43%
4
0%
5
Javascript is a synchronous single-threaded language meaning that javascript codes execute one (command) at a time and one after another.
let obj = Object.freeze({});
obj.num = 76;
console.log(obj.num);
obj.num = 76;
console.log(obj.num);
Anonymous Quiz
29%
undefined
29%
76
35%
Null
6%
Error
index.html
1.3 KB
Source code for animated share button posted recently on Instagram
What is the HTML tag under which one can write the JavaScript code?
Anonymous Quiz
18%
javascript
59%
script
21%
js
3%
main