WorksheetsJavaScript Developer I Set 2
Total questions: 60
Worksheet time: 5hrs 0mins
super.size = size;
ship.size = size;
super (size);
this.size = size;
global variables
IIFEs
localStorage
cookies
indexDB
Which statement parses successfully ?
JSON.parse('"foo"');
JSON.parse('foo');
JSON.parse('foo');
JSON.parse(" 'foo ' ");
console.debug(number & 2 === 0);
console.assert(number & 2 === 0);
console.error(number & 2 === 0);
assert(number & 2 === 0);
[1, 2]
["foo" , "bar"]
["foo:1" , "bar:2"]
An error will occur due to the incorrect usage of the for...of statement on line 07.
Browser JavaScript console
On the webpage
Browser performace tools
Terminal running the web server
Car 1 crashed in the race
Race is cancelled
Car 3 completed the race
Car 2 completed the race
str1.join(str2);
str1.concat(str2);
concat (str1 , str2);
' $(str1) $(str2) ';
str1 + str2 ;
default
all
mult
named
Give the following code, what is the value of x ?
let x= ′15′+(10∗2);
35
50
1520
3020
node --inspect-brk index.js
node --inspect index.js
node -i index.js
node inspect index.js
Which is true about the strict mode in imported modules ?
message
assert
info
log
error
A developer is trying to handle an error within a function
Which code segment shows the correct approach to handle an error without propagating it elsewhere ?
2.1.2
2.2.0
2.2.1
3.1.1
Decimal
Float
Number
Double
event.clicked
e.nodeTarget == this
button.addEventListener('click')
event.target.nodeName == 'BUTTON'
1 2 3
1 3 2
2 1 3
2 3 1
console.getTime()
console.timeStamp()
console.timeLog()
console.trace()
userInformation.get('age');
userInformation.age;
userInformation('age');
const (age) = userInformation;
Success Start End
End Start Success
Start Success End
Start End Success
undefined Developer
John Developer
Error: myFather.job is not a function
John undefined
Which statement can a developer apply to increment the browser's navigation history without a page refresh ?
window.history.pushState(newStateObject);
window.history.pushState(newStateObject,' ', null);
window.history.state.push(newStateObject);
window.history.replaceState(newStateObject,' ', null);
1 2 3 4 5
1 2 5 3 4
2 5 1 3 4
2 5 3 4 1
Gatsby
Angular
Express
Koa
Which function should a developer use to repeatedly execute code at a fixed time interval ?
setTimeout
setPeriod
setInterim
setInterval
str.substr(1 , 5);
str.substr(0 , 5);
str.substring(1 , 5);
str.substring(0 , 5);
let arr2 = arr1;
let arr2 = arr1.sort();
let arr2 = Array.from(arr1);
let arr2 = arr1.slice(0 , 5);
'yellow' : null
null : 'yellow'
'nome' : 'yellow'
'yellow' : 'nome'
Which statement accuratelly describe as aspect of promises ?
object.freeze()
object.seal()
object.lock()
object.const()
Which two logs output NaN ?
Chosse 2 answers
console.log(10 / 'five');
console.log(parseInt('two'));
console.log(10 / Number('5'));
console.log(10 / 0);
0 1 2 3 4
0 2 4 1 3
0 2 4 3 1
1 3 0 2 4
