This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| typeof null // object (bug in the language) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| typeof null // object (bug in the language) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var array = ['a', 'b', 'c', 'd', 'e']; | |
| delete array[2]; | |
| console.log(array[2]); // undefined |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var meals = function (breakfast, lunch, dinner, midnightSnack) { | |
| console.log('Breakfast is ' + breakfast); | |
| console.log('Lunch is ' + lunch); | |
| console.log('Dinner is ' + dinner); | |
| console.log('Midnight snack is ' + midnightSnack); | |
| } | |
| meals('Pancakes', 'Burritos', 'Pork Chop'); | |
| // Breakfast is pancakes | |
| // Lunch is burritos |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var noReturn = (function() { })(); // undefined | |
| var returnNoValue = (function( { return; })(); // undefined | |
| var returnOne = (function( { return 1; })(); // 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var mySkills = ['JavaScript', 'jQuery']; | |
| var JavaScript = skills[0]; // 'JavaScript' | |
| var jQuery = skills[1]; // 'jQuery' | |
| var fly = skills[2]; // undefined |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| unDeclared; // Reference Error: unDeclared is not defined var noValueDefined; // undefined |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| window.hasOwnProperty(undefined); // true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| typeof undefined // undefined |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| android |