Advertisement
Crevice

Conditional Challenges 1

Nov 5th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.96 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.    <meta charset="UTF-8">
  5.    <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.    <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7.    <title>Document</title>
  8.    <script>
  9.        // #1
  10.       //read the description of the six falsy types in the W3/MDN documentation
  11.       // create six variables, and store one of the falsy datatypes in each.
  12.        //#2
  13.       //console log the typeOf for each variable that you created
  14.       //note the types of the six falsy values which show up in the console
  15.       //also note that all non falsy values are true values!
  16.        //#3
  17.        // Use  "==" and "===" to compare strings numbers and numbers with same value
  18.        // for example if(5 == "5") vs if(5 === "5")
  19.        //console log the result, what do you notice in the console logs?
  20.        // read the W3/MDN == vs === documentation on type coercien
  21.    </script>
  22. </head>
  23. <body>
  24. </body>
  25. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement