Computers and Technology

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);

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 01:50, divine134
A.) generate scaffolding to create database for your application. develop all the entities identified in assignment #2. add any additional that may be identified later. b.) add data validation rules to the models that are appropriate for your application and data. c.) create links for each scaffold in the header section. part 2: application updates [30 points] a.) add two additional views to the "home" controller you created in assignment #1. b.) the two views should be named as “privacy" and "". c.) link the two newly created views in the footer section. hint: you would need to modify the “home" controller definition and create “privacy. html. erb" and “.html. erb" files in appropriate locations.
Answers: 3
image
Computers and Technology, 22.06.2019 15:20, brookemcelhaney
The north and south regions had very diferent economies in the 1800s.
Answers: 1
image
Computers and Technology, 23.06.2019 13:30, valeriegarcia12
Select the correct answer from each drop-down menu. which types of computer networks are bigger as well as smaller than a man? a man is a network of computers that covers an area bigger than a , but smaller than a .
Answers: 1
image
Computers and Technology, 24.06.2019 12:00, yagalneedshelp8338
Match the function to its purpose. fast worth 50pts.
Answers: 1
Do you know the correct answer?
Answer the following questions:
1. what is the value of foo?
var foo = 10 + '20';

Questions in other subjects: