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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:30
Elements such as fonts colors visual structure graphics and the interface of a web page should complement each other to ensure blank
Answers: 3
question
Computers and Technology, 23.06.2019 06:30
When early motion pictures played in movie theaters, they were often accompanied by live organ or piano music. which of the following are the most likely reasons that this happened? (select all that apply). the music was provided to distract audience members from the loud sounds made when filmstrips were changed. the music accompanied the movies because the movies were silent and audiences were used to hearing music during plays in theaters. the music usually was played before, and sometimes after the movie, as an alternative form of entertainment. the music viewers to interpret the dramatic action in the films.
Answers: 2
question
Computers and Technology, 24.06.2019 20:10
Approximately what portion of global employers tends to use social media websites to hire new employees?
Answers: 1
question
Computers and Technology, 24.06.2019 21:00
Which device has the most limited computing functionality?
Answers: 1
You know the right answer?
Answer the following questions:
1. what is the value of foo?
var foo = 10 + '20';
Questions
question
Mathematics, 24.06.2021 19:40
Questions on the website: 13722367