Basic JS

Important Keywords

arguments - is a JavaScript keyword used to iterate through all the arguments passed to a function. We can declare a function without any parameters passed in as seen above, and still be able to pass in any number of arguments to that function while calling it and iterate through all the passed in arguments inside that function using the arguments keyword.

typeof - is a JavaScript keyword used to find the type of a variable, syntax: - typeof variableName. It returns the type of the variable as a string.

use strict Mode

use strict mode is a JavaScript mode to cause JavaScript to throw errors in places, it would otherwise, just silently fail. So, it’s always a good practice to use strict mode. Using strict mode also disallows using deprecated parts of JavaScript.

To enable the strict mode simply type use strict on top of the js file.

"use strict"
... // write any javascript below

Machine Learning A-Z

by - Vignesh S