What will be the result of the following expression? (Select all that apply)
console.log(2 + "2" - 1 + true);
Session6
Quiz
•
Engineering
•
University
•
Medium
Nada Asraf
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
What will be the result of the following expression? (Select all that apply)
console.log(2 + "2" - 1 + true);
"221"
22
21
NaN
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
function foo() { var x = 5; console.log(x); }
foo();
console.log(x);
10 , 10
10 , 5
5 , 10
5 , 5
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
var name = "John";
function sayName() { console.log(name); var name = "Jane"; }
sayName();
John
Jane
JohnJane
Undefined
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
parseInt("123")
convertNumber("123")
toNumber("123")
number("123")
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1
15
10
[1,2,3,4,5]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
...(1)...Function-scoped and .
....(2)....Block-scoped
(1) let , (2) var
(1) var , (2) let
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which document property will return all the img elements?
document.links
document.doctype
document.images
document.documentMode
20 questions
DLD Unit 1 _ 2
Quiz
•
University
19 questions
python
Quiz
•
University
20 questions
Examen Estructura de datos 2P
Quiz
•
University
15 questions
CC SBL
Quiz
•
University
21 questions
Java basic
Quiz
•
University
20 questions
wp_css
Quiz
•
University
25 questions
PodiumRound
Quiz
•
University
15 questions
2.3.4 - NSPE Code of Ethics
Quiz
•
10th Grade - University
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade