April 15, 2018
Warning: count(): Parameter must be an array or an object that implements Countable in
/nfs/c03/h06/mnt/47997/domains/jeffschram.com/html/wp-content/plugins/workbox-video-from-vimeo-youtube-plugin/workbox_video.php on line
192
Classes are templates that create objects. Class names are usually CapitalCase class Dog { constructor(name) { this.name = name; this.behavior = 0; } } The CLASS calls the CONSTRUCTOR method every time it creates a new INSTANCE of the class. An INSTANCE is an OBJECT that contains the property names and methods of a class, […]
April 13, 2018
Warning: count(): Parameter must be an array or an object that implements Countable in
/nfs/c03/h06/mnt/47997/domains/jeffschram.com/html/wp-content/plugins/workbox-video-from-vimeo-youtube-plugin/workbox_video.php on line
192
OBJECTS JavaScript objects are containers that can store data and functions. The data we store in an object is not ordered — we can only access it by calling its associated key. const myObj = { thing: ‘value’, another: 2 } Can be accessed w dot notation myObj.thing; // ‘value’ Or bracket notation myObj[‘thing’]; // […]
April 5, 2018
Warning: count(): Parameter must be an array or an object that implements Countable in
/nfs/c03/h06/mnt/47997/domains/jeffschram.com/html/wp-content/plugins/workbox-video-from-vimeo-youtube-plugin/workbox_video.php on line
192
FLOW Controlling the flow of the execution with if, else if, else, and switch. NOTE: Lines of code between curly braces are called blocks. IF ELSE ELSE IF if/else statements are how programs can process yes/no questions programmatically. SWITCH let groceryItem = ‘papaya’; switch (groceryItem) { case ‘tomato’: console.log(‘Tomatoes are $0.49’); break; case ‘lime’: console.log(‘Limes […]