Skip to content

Commit

Permalink
Merge pull request #73 from vikasdesale/Logical_expressions
Browse files Browse the repository at this point in the history
fix : #69 Logical_expressions
  • Loading branch information
vikasdesale committed Jan 12, 2018
2 parents 2e2a8f7 + 88a9c34 commit 5996c73
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions 2. Introduction to Javascript/14.Quiz_answers.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
QUESTION 1 OF 3
What value of [BLANK] would make the following expression evaluate to false. Notice the ! right at the beginning!

!([BLANK] === 4) && "STRing" === "STRing"
Returns: false


-4

=>4


"4"


"-4"

SUBMIT
QUESTION 2 OF 3
Select the operator that would make the following expression evaluate to true.

3 < -10 [BLANK] "James" !== "james"
Returns: true


!

=>||


&&

SUBMIT
QUESTION 3 OF 3
Evaluate the following logical expressions. Check the ones that evaluate to true.

=>true || false


false && false


!true

=>(13 > -7) || (false == 0)


(10 === "10") && (1 <= 2)

=>(3 != 6 % 3) && !(24 > 45) && (!false)

0 comments on commit 5996c73

Please sign in to comment.