JavaScript Test
Please attempt all the questions below:
Q1. Which of the following is used to define a variable in JavaScript?
var
let
Both A and B
None of the above
Q2. How can a data type be declared to be a constant type?
const
var
let
constant
Q3. When an operator's value is NULL, the typeof returned by the unary operator is?
Boolean
Undefined
Object
Integer
Q4. Which function is used to serialize an object into a JSON string in JavaScript?
stringify()
parse()
convert()
None of the above
Q5. Which of the following is not a JavaScript framework?
Node
Vue
React
Cassandra