Javascript Erekle
Javascript Erekle
a) null
b) object
c) number
d) boolean
2) which array method returns a new array?
a) push
b) map
c) foreach
d) pop
3) which of the following is a reference type?
a) number
b) boolean
c) array
d) undefined
4) what will be the output of this code: ``274`` === 274
a) false
b) true
c) undefined
d) boolean
5) what will be the output of this code: ``274`` == 274
a) false
b) true
c) undefined
d) boolean
console.log(name)
what will be the output of this console.log?
a) undefined
b) ``Khvicha``
c) ``Kvaratskhelia``
d) ``Khvicha Kvaratskhelia``
e) ``Kvara``
10) let number = 1.5349;
how can we round this number to get 1.53 instead of 1.5349 ? ;
a) number.toFixed(3)
b) number.toFixed(1)
c) number.toFixed(2)
d) number.toFixed()
11) let name1;
let name2 = “Messi“
let name3 = “Ronaldinho“
console.log( name1 || name2 || name3 );
what will be the output of this console.log function?
a) “name1“
b) undefined
c) “Ronaldinho“
d) “Messi“
12) let name1 = “Ibrahimovic“ ;
let name2 = “Messi“
let name3 = “Ronaldinho“
console.log( name1 && name2 && name3 );
what will be the output of this console.log function?
a) “name1“
b) undefined
c) “Ronaldinho“
d) “Messi“