What is the result of the following JavaScript code?
var x = 10; function foo() { var x = 5; console.log(x); } foo(); console.log(x);
A) 5 and 10 B) 5 and 5 C) 10 and 5 D) 10 and 10

seen from United States

seen from United States

seen from United States

seen from Colombia
seen from Bangladesh
seen from United States

seen from Germany

seen from United States
seen from United States

seen from United States

seen from United States
seen from Australia
seen from China
seen from United Kingdom
seen from Lithuania

seen from United States
seen from Nigeria

seen from United Kingdom
seen from United States

seen from United States
What is the result of the following JavaScript code?
var x = 10; function foo() { var x = 5; console.log(x); } foo(); console.log(x);
A) 5 and 10 B) 5 and 5 C) 10 and 5 D) 10 and 10
What will the following JavaScript code output?
console.log(5 + "5");
A) 10 B) 55 C) Error D) NaN
What is the correct way to declare a variable in JavaScript?
A) new var myVariable; B) let myVariable; C) variable myVariable; D) declare myVariable;
Which keyword is used to declare a variable in JavaScript?
a) var b) int c) string d) variable
Which of these JavaScript frameworks and technologies, what area are you most knowledgeable about or interested in?
A. Angular B. Node C. Vue.js D. React
Which framework is Express.js?
A. Node.js B. JavaScript C. React.js D. Angular.js
#javascriptquiz
#javascriptquiz