NEW
Font size
WorksheetsDTJSQuiz
Total questions: 10
Worksheet time: 5mins
Which one is a good example of data type string value?
123string
‘string123’
string
Iam + ‘String’
Which is NOT considered as javascript number data type
456.0
456e7
1223456n
789f
What is the result of this statement?
console.log('Boolean(10) is ' + Boolean(10));
true
false
var motorcyle =["honda,"" kawasaki"," yamaha"];
this line of statement is an example of data type
string
object
array
undefined
let student;
console.log(student);
the variable student is an example of data type
string
object
array
undefined
This data type value is treated as special which represents empty or unknown. Which keyword is being used to characterize this variable?
variable
null
void
zero
let mobilePhone = {
name: 'iphone',
model: '15',
price: 'Php 56,990' };
This js code is an example of data type
array
string
object
number
let o = "Ocean" + 5 + 3;
console.log(o);
The result is:
error
NaN
Ocean53
"Ocean"53
When you code and run this line of code
console.log(typeof 123)
will result into
string
number
undefined
null
This data type is very useful when a programmer wants to check the condition while validating something in the script.
string
object
array
boolean
