0% found this document useful (0 votes)
2K views5 pages

Javascript Erekle

Uploaded by

Erekle Bazanovi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2K views5 pages

Javascript Erekle

Uploaded by

Erekle Bazanovi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

1) what is the type of null?

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

6) what will be the output of this code: ``10`` + 5


a) 15
b) 105
c) ``105``
d) ``15``
7) how can we remove less than 10 elements from: const array = [10, 20, 1, 4,
5, 34];
1) array.map(item => item > 10)
2) array.filter(item => item = 10)
3) array.filter(item => item < 10)
4) array.map(item => item < 10)
8) which of the following is an arrow function:
1) const myFunc = (parameter) => {};
2) const myFunc = {parameter} => ();
3) function myFunc(parameter) {};
4) const myFunc = function(parameter) {}
9) const number = 77;
let name;
if(number > 77) {
name = ``Khvicha``
} else if(number === ``77``) {
name = ``Kvara``
} else if(number < 77) {
name = ``Kvaratskhelia``
} else if {
name = ``Khvicha Kvaratskhelia``
}

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“

13) const array1 = [1, 2, 3]


const array2 = [4,5,6,7]
const array3 = [...array1, ...array2]
console.log(array3)
what will be the output of this console.log function?
a) [[1,2,3], [4,5,6,7]]
b) [1,2,3, [4,5,6,7]]
c) [[1,2,3, 4,5,6,7]]
d) [1,2,3,4,5,6,7]

14) const array1 = [1,2,3,4]


const array2 = array1
array1.push(5)
console.log(array2)
what will be the output of this console.log function?
a) [1, 2, 3, 4]
b) [1, 2, 3, 4, 5]
c) {1,2,3,4,5}
d) {1,2,3,4}
15) let number1 = 5;
let number2 = number1;
let number1 = 7;
console.log(number2)
what will be the output of this console.log function?
a) 5
b) 7
c) 12
d) null
16) let division = 17 % 5
console.log(division)
what will be the output of this console.log function?
a) 2
b) 5
c) 17
d) 33.3333
17) const footballerObj = {
name: “Henry“,
number: 14,
club: “Arsenal“,
}
how can you access footballerObj’s club value?
a) footballerObj[3]
b) footballerObj.club
c) footballerObj > club
d) footballerObj.2
18) const arrayOfNumbers = [14, 5, 43, 9, 38]
how can you access array1`s element which is equal to 9?
a) arrayOfNumbers[0]
b) arrayOfNumbers[3]
c) arrayOfNumbers[4]
d) arrayOfNumbers.9

19) let number = 10;


const myFunc = () => {
let number = 20;
console.log(number)
return number
}
what will be the output of the console.log which is inside the myFunc Function?
a) 10
b) 20
c) undefined
d) null
20) const array1 = [1,2,3]
const array2 = [1,2,3]
console.log(array1 === array2)
what will be the output of this console.log function?
1) [1,2,3]
2) true
3) false
4) boolean

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy