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 15:30
When creating a budget, log fixed expenses before income. after income. after savings. at the top.
Answers: 1
question
Computers and Technology, 23.06.2019 00:10
Write a function so that the main0 code below can be replaced by the simpler code that calls function mphandminutes tomiles0. original main0 int main) l double milesperhour-70.0; double minutestraveled = 100.0; double hourstraveled; double milestraveled; hourstraveled = minutestraveled / 60.0; milestraveled = hourstraveled * milesperhour; cout < "miles" 2 using namespace std; 4 /* your solution goes here/ 6 int maino 1 test passed 7 double milesperhour 70.0 all tests passed 8 double minutestraveled 100.0; 10 cout < < "miles: " < < mphandminutestomiles(milesper-hour, minutestraveled) < < endl; 12 return 0; 13
Answers: 1
question
Computers and Technology, 23.06.2019 14:00
Technician a says that with self-adjusting clutch systems, the release bearing constantly rotates. technician b says that the ball bearing portion of the release bearing should be lubricated with high-temperature grease during routine maintenance. which technician is correct?
Answers: 2
question
Computers and Technology, 23.06.2019 14:00
What is html ? give a small description about html
Answers: 2
You know the right answer?
Answer the following questions:
1. what is the value of foo?
var foo = 10 + '20';
Questions
question
Physics, 22.06.2019 17:00
Questions on the website: 13722363