Question: 1
Refer to the code below:
console.log(''start);
Promise.resolve('Success') .then(function(value){
console.log('Success');
});
console.log('End');
What is the output after the code executes successfully?
Question: 2
In the browser, the window object is often used to assign variables that require the broadcast scope in an application Node is application do not have access to the window object by default.
Which two methods are used to address this? Choose 2 answer
Question: 3
Refer to the code below:
What are the values for first and second once the executes?
Question: 4
A developer wrote a fizzbuzz function that when passed in a number, returns the following:
Fizz if the number is divisible by 3.
Buzz if the number is divisible by 5.
Fizzbuzz if the number is divisible by both 3 and 5.
Empty string if the number is divisible by neither 3 or 5.
Which two test cases will properly test scenarios for the fizzbuss function?
Question: 5
Refer to the HTML below:
Which JavaScript statement results in changing '' The Lion.''?