Fillin (hover over or click) the blanks to learn about Javascript, or create your own lines

+ A "closure" is an expression (typically a function) that can have free variables together with an environment that binds those variables (that "closes" the expression).
+ jQuery is a JavaScript library which can simplify coding Javascript for a website and removes many browser compatibility issues.
+ The JavaScript concat() method is used to join two or more arrays.
+ If checkbox not responding in IE6, make sure event is onclick instead of onchange
+ JavaScript has three kind of popup boxes: Alert box, Confirm box, and Prompt box.
+ To split a string with multiple separators in JavaScript, pass in a regexp as the parameter.
+ javascript function isInteger(s) { return (s.toString().search(/^-?[0-9]+$/) == 0); }
+ You can submit a form by using the Javascript submit() method.
+ Javascript constants are declared with the const type.
+ In JavaScript the instruction document.cookie = "temperature=20" creates a cookie of name temperature and value 20
+ Beside the name/value pair, a cookie may also contain an expiration date, a path, a domain name, and whether the cookie is intended only for encrypted connections.
+ The scrollTo() method of JavaScript scrolls content of the window to the specified coordinate position.
+ To register a single event listener on a single target in Javascript use target.addEventListener(type, listener, useCapture);
+ an anonymous function is a function that is not bound to an identifier.
+ this.bla = function () {} is a public function while var bla = function() {} is a private function
+ inner functions referring to local variables of their outer functions create closures
+ The simplest way to create an object in Javascript is to write something like bla = new Object();
+ The prototype object of JavaScript, is a prebuilt object that simplifies the process of adding custom properties & methods to all instances of an object.
+ Can write document.all(intCounter) instead of window.document.all(intCounter), as window is the default object.
+ The all collection contains all the elements within the document. The first item in the all collection has an index of zero.


A Lefkon Development