This link has been bookmarked by 71 people . It was first bookmarked on 28 Aug 2007, by Edgar Muñoz.
-
31 Dec 17
-
15 Jul 14
-
In Internet explorer you should also avoid variable names with the same name as html elements you have named
-
ot a Number (Generated when an arithmetic operation returns an invalid result). NaN is a weird construct. For one, it is NEVER equal to itself so you can't simply check to see if 3/'dog' == 'NaN'. You must use the construct isNaN(3/dog) to determine if the operation failed. In boolean operations NaN evaluates to false, however 0 also evaluates to false so use isNaN.
-
Since NaN is never equal to itself you can use this simple trick as well:
-
-
29 Apr 13
-
25 Nov 12
-
22 Mar 12
-
31 Jan 12
-
Javascript is extremely case sensitive
-
you should note that the browser itself is ALWAYS looking for a </script> tag to mark the end of your Javascript and if it finds that tag, intact, in-one-piece, be it in a string or a comment,
-
document.writeln('</scr'+'ipt>');
-
$('something') in Javascript you should read that as being document.getElementById('something')
-
Javascript's precision which is in the order of 300 digits
-
You can find the exact minimum and maximum range for your Javascript implementation using Number.MAX_VALUE and Number.MIN_VALUE.
-
equality checking (==) and identity checking (===)
-
switch (true) { case (x==1): alert('x is equal to 1!'; break; case (x==2): alert('x is equal to 2!'; break; case (x==5): alert('x is equal to 5!'; break; default: alert("x isn't 1, 2 or 5!");
-
note that zero evaluates as false so if you pass zero as either firstVar or secondVar the default values will be assigned and NOT zero
-
Array.prototype.shuffle = function (){ for(var rnd, tmp, i=this.length; i; rnd=parseInt(Math.random()*i), tmp=this[--i], this[i]=this[rnd], this[rnd]=tmp); };
-
The only real trick is that where you see a dash in the CSS name, for Javascript you need to remove the dash and capitalize the next letter. So the CSS style background-color becomes backgroundColor in Javascript.
-
-
19 Jan 12
-
22 Oct 11
-
20 Oct 11
-
27 Jul 11
-
19 Jul 11
TooManySecretsUn magnífico tutorial de Javascript.
javascript tutorial documentacion programacion programming web
-
18 Jul 11
junior666Essential Javascript -- A Javascript Tutorial
javascript tutorial programming tutorials ajax web webdesign webdev
-
21 Jun 11
-
09 Mar 11
-
Javascript supports equality checking (==) and identity checking (===). Equality checks for equality regardless of type. Therefore 25 and '25' will evaluate as true. Identity checking checks not only for equality but type equality as well so 25 and '25' will evaluate as false because, while both are 25, one is a string and the other a number.
-
-
Andreas GlöcklThis reference will cover the basic language constructs. This is not a beginner's guide to programming. This article focuses on bringing people who already know another programming language up to speed on Javascript methodology.
-
04 Mar 11
-
03 Nov 10
-
18 Jun 10
-
29 Mar 10
Marg WilkinsonVery nice javascript tutorial for people who already know another programming language up to speed on Javascript methodology. Additionally, this is not an exhaustive language definition, it is a broad overview that will occasionally focus in on some more
-
19 Feb 10
-
27 Aug 09
Ethan GardnerJavascript is an interpreted language with a C like syntax. While many people brush the language off as nothing more than a browser scripting language, it actually supports many advanced concepts such as object-oriented-programing, recursion, lambda, and
-
18 Jul 09
-
26 Jun 09
-
25 Feb 09
Miguel Ribeiro e SilvaJavascript is an interpreted language with a C like syntax. While many people brush the language off as nothing more than a browser scripting language, it actually supports many advanced concepts such as object-oriented-programing, recursion, lambda, and
-
18 Jan 09
-
24 Dec 08
-
09 Dec 08
-
06 Nov 08
-
31 Aug 08
-
30 Jun 08
Mr. DiGiThis article focuses on bringing people who already know another programming language up to speed on Javascript methodology. Additionally, this is not an exhaustive language definition, it is a broad overview that will occasionally focus in on some more advanced concepts.
-
-
09 Mar 08
-
19 Feb 08
-
17 Dec 07
-
23 Oct 07
-
15 Oct 07
-
11 Oct 07
-
05 Oct 07
-
06 Sep 07
-
13 Jul 07
S JonesThorough reference for JavaScript numbers, strings, dates, JSON and AJAX for noobs.
-
17 May 07
-
16 May 07
-
15 May 07
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.