JavaScript - Pluralsight questions

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);
	}

	//10
Which answer correctly shows a function being invoked with the value of another function as an argument? getScore(latestScore())

Nhidev's Blog