subject

Answer the following questions:
1. what is the value of foo?
var foo = 10 + '20';
2. what will be the output of the code below?
console. log(0.1 + 0.2 == 0.3);
3. how would you make this work?
add(2, 5); // 7 add(2)(5); // 7
4. what value is returned from the following statement?
"i'm a lasagna hog".split("").("");
5. what is the value of window. foo?
( window. foo || ( window. foo = "bar" ) );
6. what is the outcome of the two alerts below?
var foo = "hello"; (function() { var bar = " world"; alert(foo + bar); }; alert(foo + bar);
7. what is the value of foo. length?
var foo = []; foo. push(1); foo. push(2);
8. what is the value of foo. x?
var foo = {n: 1}; var bar = foo; foo. x = foo = {n: 2};
9. what does the following code print?
console. log('one'); settimeout(function() { console. log('two'); }, 0); promise.(function() { console. log('three'); }) console. log('four');
10. what is the difference between these four promises?
(function () { return dosomethingelse(); }); (function () { dosomethingelse(); }); (; (dosomethingelse);

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 15:30, 1232444553
Which of the following examples has four beats in each measure?
Answers: 2
image
Computers and Technology, 23.06.2019 22:50, christingle2004
What is an rss reader used for? for creating a user account on a social new site
Answers: 2
image
Computers and Technology, 24.06.2019 09:30, nialphonsa
Atype of researcher who uses computers to make sense of complex digital data
Answers: 1
image
Computers and Technology, 24.06.2019 15:00, dummynate
Universal windows platform is designed for which windows 10 version?
Answers: 1
You know the right answer?
Answer the following questions:
1. what is the value of foo?
var foo = 10 + '20';

Questions in other subjects:

Konu
Social Studies, 25.07.2019 04:00