• JavaScript - Fundamentals for Absolute Beginners 2018

    Oct 19, 2018

    Begin with the very basics of the JavaScript language.

  • JavaScript - Strict Mode ‘use strict’

    Oct 18, 2018

    Strict Mode is a new feature in ECMAScript 5 that allows you to place a program, or a function, in a “strict” operating context. This strict context prevents certain actions from being taken and throws more exceptions. The statement “use strict”; instructs the browser to use the Strict mode, which is a reduced and safer feature set of JavaScript.

  • JavaScript - Pluralsight questions

    Oct 17, 2018

    What is the difference between a property and a method on a class? A property is an association between a name and a value; a method is when a function is the value of a property.
    What built-in browser object can you use to perform an AJAX request to a server? XMLHttpRequest
    What is the correct syntax for declaring an object literal? const obj = {}
    Which of these is equivalent to the following for loop?
    
    	do {
    	  i++;
    	  ...
    	} while ((i < x)
    
    Which keyword would be best to hold a userId that is loaded from the server and never changes? const
    What is one function you can use to determine whether a value is an illegal number or not? isNaN()
    How can you use a DOM method to create a new HTML element? var myNewListItem = document.createElement("li");
    How can you instantiate an object with a custom type Person using the new keyword? By defining the object with a constructor function, then instantiating the object using that function and the new keyword:
    
    	function Person(name, age, etc){
    	  this.name = name;
    	  this.age = age;
    	  this.etc = etc;
    	}
    	let newPerson = new Person("Bob", 35, "etc");
    
    Generally, where is the best place to put script tags? At the end of the body tag.
    What is the array prototype method that changes the contents of an array by removing existing elements and/or adding new elements? [].splice()
    After the following code is executed, what is printed to the console?
    
    	let iterable = [10];
    	for (let value of iterable) {
    	  console.log(value);
    	}
    
    
  • JavaScript - Basic Note

    Oct 17, 2018

  • JavaScript - Fundamentals for Absolute Beginners 2018

    Oct 19, 2018

    Begin with the very basics of the JavaScript language.

  • JavaScript - Strict Mode ‘use strict’

    Oct 18, 2018

    Strict Mode is a new feature in ECMAScript 5 that allows you to place a program, or a function, in a “strict” operating context. This strict context prevents certain actions from being taken and throws more exceptions. The statement “use strict”; instructs the browser to use the Strict mode, which is a reduced and safer feature set of JavaScript.

  • JavaScript - Pluralsight questions

    Oct 17, 2018

    What is the difference between a property and a method on a class? A property is an association between a name and a value; a method is when a function is the value of a property.
    What built-in browser object can you use to perform an AJAX request to a server? XMLHttpRequest
    What is the correct syntax for declaring an object literal? const obj = {}
    Which of these is equivalent to the following for loop?
    
    	do {
    	  i++;
    	  ...
    	} while ((i < x)
    
    Which keyword would be best to hold a userId that is loaded from the server and never changes? const
    What is one function you can use to determine whether a value is an illegal number or not? isNaN()
    How can you use a DOM method to create a new HTML element? var myNewListItem = document.createElement("li");
    How can you instantiate an object with a custom type Person using the new keyword? By defining the object with a constructor function, then instantiating the object using that function and the new keyword:
    
    	function Person(name, age, etc){
    	  this.name = name;
    	  this.age = age;
    	  this.etc = etc;
    	}
    	let newPerson = new Person("Bob", 35, "etc");
    
    Generally, where is the best place to put script tags? At the end of the body tag.
    What is the array prototype method that changes the contents of an array by removing existing elements and/or adding new elements? [].splice()
    After the following code is executed, what is printed to the console?
    
    	let iterable = [10];
    	for (let value of iterable) {
    	  console.log(value);
    	}
    
    
  • JavaScript - Basic Note

    Oct 17, 2018

Nhidev's Blog