JS-Dev-101 Exam Question 1
Given the code below:
const copy = JSON.stringify([ newString(' false '), new Bollean( false ), undefined ]); What is the value of copy?
const copy = JSON.stringify([ newString(' false '), new Bollean( false ), undefined ]); What is the value of copy?
JS-Dev-101 Exam Question 2
Refer to the code below
let inArray = [[1,2],[3,4,5]];
which two statements results in the array [1,2,3,4,5]?
choose 2 answer
let inArray = [[1,2],[3,4,5]];
which two statements results in the array [1,2,3,4,5]?
choose 2 answer
JS-Dev-101 Exam Question 3
Which three options show valid methods for creating a fat arrow function?
Choose 3 answers
Choose 3 answers
JS-Dev-101 Exam Question 4
A developer implements a function that adds a few values.
Function sum(num) {
If (num == undefined) {
Num =0;
}
Return function( num2, num3){
If (num3 ===undefined) {
Num3 =0 ;
}
Return num + num2 + num3;
}
}
Which three options can the developer invoke for this function to get a return value of 10 ?
Choose 3 answers
Function sum(num) {
If (num == undefined) {
Num =0;
}
Return function( num2, num3){
If (num3 ===undefined) {
Num3 =0 ;
}
Return num + num2 + num3;
}
}
Which three options can the developer invoke for this function to get a return value of 10 ?
Choose 3 answers
JS-Dev-101 Exam Question 5
Refer to the following code:
Let obj ={
Foo: 1,
Bar: 2
}
Let output =[],
for(let something in obj{
output.push(something);
}
console.log(output);
What is the output line 11?
Let obj ={
Foo: 1,
Bar: 2
}
Let output =[],
for(let something in obj{
output.push(something);
}
console.log(output);
What is the output line 11?
