Question 21
EasyWhat is the output of this program?
console.log(10 / );
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Programming Languages
What is the output of this program?
console.log(10 / );
Error
Infinity
NaN
0
Sign up free to see the answer and a step-by-step explanation.
What is the output of this program?
console.log(parseInt("42px"));
NaN
Error
42
42px
Sign up free to see the answer and a step-by-step explanation.
What is the output of this program?
console.log([1, 2, 3].filter(n => n > 1).length);
[2, 3]
3
Sign up free to see the answer and a step-by-step explanation.
Which keyword declares a block-scoped variable that can later be given a new value?
final
let
static
const
Sign up free to see the answer and a step-by-step explanation.
Which built-in function turns a JSON string into a JavaScript object?
JSON.stringify()
parseJSON()
JSON.parse()
Object.from()
Sign up free to see the answer and a step-by-step explanation.
What does DOM stand for in web development?
Dynamic Output Mode
Document Order Map
Document Object Model
Data Object Method
Sign up free to see the answer and a step-by-step explanation.
Which method writes a message to the browser's developer console?
System.out.println()
console.log()
print()
echo()
Sign up free to see the answer and a step-by-step explanation.
What is the output of this program?
console.log('5' + 2);
52
3
7
NaN
Sign up free to see the answer and a step-by-step explanation.
What is the output of this program?
console.log('5' - 2);
52
NaN
7
3
Sign up free to see the answer and a step-by-step explanation.
What is the output of this program?
console.log(x);
var x = 10;
null
ReferenceError
10
undefined
Sign up free to see the answer and a step-by-step explanation.
1
2