Commit Graph

54 Commits

Author SHA1 Message Date
jasonqu
5e0964e2ee [javascript/zh] Translation tracking 2015-03-06 17:42:44 +08:00
Nimit Kalra
08b0596e45 Add semicolon to maximine consistency.
Added a semicolon to conform with statement at top of guide:

// Because those cases can cause unexpected results, we'll keep on using
// semicolons in this guide.
2015-02-25 10:03:19 -06:00
John Gabriele
e69ca623a7 javascript/en: added some md formatting
Added some markdown formatting to the comments throughout to clarify meaning. Also tweaked a couple of other quote marks as well. Also shortened a couple of long lines.

More to do, but stopped here for now. :)
2015-02-03 17:31:44 -05:00
Adam Bard
aa98391e92 Merge pull request #832 from isomorphisms/patch-5
more oddities
2014-11-12 19:53:49 +02:00
Frederik Ring
9324987c1f use propernotation for decimals 2014-10-30 16:43:49 +01:00
i
3921d11155 more oddities
JavaScript is full of oddities .. I definitely wouldn't claim everything works "as it should" .. you don't have to include the gotcha's but I don't know, they're not that confusing for me.
2014-10-28 03:56:12 -04:00
i
eb43eb7ccd basic arithmetic *doesn't* work
It's not really true that arithmetic is accurate in JavaScript.
2014-10-28 03:11:59 -04:00
Adam Bard
2a6e60d83b Merge pull request #828 from ml242/master
Use === in js tutorial except once demonstrating ==
2014-10-27 19:32:39 +02:00
ml242
fb28f2c102 Your Name: Matt
Subject Line: Addresses Comparisons in Javascript
What Happened:

I believe that starting out with the double equals instead of the triple equals for strict comparison checking is incorrect. Because double equals uses type coercion, it is more of a feature the needs to be understood. Beginners looking at the language should look upon the stricter method as the proper one because it is less likely to give a surprising result.

I also tried to address the behaviour by adding an example to the double equals comparison.

Hope that the community is interested in pulling in these changes, they stem from teaching beginners javaScript but I am by no means the authority.
2014-10-27 00:43:20 -04:00
m90
7cf0bcb828 [javascript/*] typeof is an operand and not a function/method - fix usage / remove parens 2014-08-09 21:41:12 +02:00
Nati
659bc7566f Changed "complimenting" to "complementing". 2014-06-10 16:54:32 -07:00
Ariel
6348a3adde space 2014-03-10 18:08:50 -04:00
Ariel
0590851a64 Added a bit of example code and resources. 2014-03-10 17:23:49 -04:00
Renjith G R
845dc497ad Fix capitalization in the word JavaScript
There were two more other places where JavaScript was written as Javascript.
2014-01-22 11:22:07 +05:30
Renjith G R
08107bef21 Fixed capitalization in the word JavaScript
Changed Javascript to JavaScript in the first paragraph.
2014-01-22 10:52:24 +05:30
Adam Brenecki
c43c033646 Fixed ) { vs ){ inconsistency 2014-01-19 16:10:58 +10:30
Joel Birchler
7927c1bf3a Added call, apply, bind JavaScript examples 2013-12-26 22:50:17 -08:00
cubuspl42
eafeb3b461 typo 2013-12-14 14:44:06 +01:00
cubuspl42
432eb6f53d Note about how declaring functions affects scope. 2013-12-14 14:41:07 +01:00
Adam Brenecki
ec3343839f [javascript] Add notes about ASI. Closes #424. 2013-11-26 18:28:44 +10:30
Adam Brenecki
9f0ae279d8 [javascript/en] Enforce 80-char line width 2013-11-05 12:47:58 +10:30
Steven Senatori
34b0264620 fixing one of my corrections, no idea why I delted the }; on line 333 previously...sorry 2013-11-02 17:30:36 -07:00
Steven Senatori
cba64739f5 Deleted some bad syntax and tweaked an explanation
for clarity
2013-11-02 16:50:29 -07:00
Adam Brenecki
c149c619da [javascript] Added note about ints 2013-10-10 10:52:56 +10:30
Adam Brenecki
9c0e7c548d [javascript] Add bit about array mutability.
Closes #381.
2013-10-10 08:33:39 +10:30
Frederik Ring
a91b4fd300 be consistent with PascalCasing of constructors 2013-10-03 20:02:16 +02:00
Adam Brenecki
750b2a2f21 [javascript] clarify constructor prototype example, as per #204 2013-09-20 19:22:00 +09:30
Adam Brenecki
49b30c38e2 Add missing semicolon 2013-09-20 19:17:10 +09:30
Adam Brenecki
9d1015232c Wrapped setTimeout note to 80 chars 2013-09-13 20:21:14 +09:30
jeroenransijn
3f9ba06563 Note aboute setTimeout 2013-09-11 15:51:21 +02:00
Adam
e546f9cd9c Add file download to javascript.js 2013-09-02 21:33:53 -07:00
Billy Shih
cf90a62a7a Fixed a grammatical error 2013-08-19 15:19:48 -07:00
Adam Brenecki
80f97751a2 [javascript] Add semicolons. Closes #214. 2013-08-15 21:05:27 +09:30
Adam Brenecki
05c3ca9044 [javascript] Remove anonymous function assignment example. ref #215 2013-08-15 20:33:44 +09:30
Adam Brenecki
5f2928df6b More concise explanation of closures 2013-08-14 17:21:44 +09:30
Adam Brenecki
a82859f95b Explain anonymous functions after first-class, and more concisely 2013-08-14 17:21:29 +09:30
Adam Brenecki
02ea95377d Avoid telling people about techniques that are discouraged anyway 2013-08-14 17:20:34 +09:30
Kyle Simpson
69c4e4e509 Made some corrections and clarifications 2013-08-14 00:12:15 -05:00
greybird
f5023cc9b3 fix immediately-executing function 2013-08-05 17:22:53 +04:00
Anna Harren
feceda02b2 Added link to Javascript Garden 2013-07-15 01:06:33 +01:00
Jakub Jurových
94ef913f98 s/self/this in JavaScript 2013-07-12 21:14:52 +02:00
Adam
36f0eeac14 Minor edits to javascript 2013-07-04 09:24:21 -07:00
Adam Brenecki
8120eb7ff0 Miscellaneous additions 2013-07-04 19:49:35 +09:30
Adam Brenecki
80c16770cd Added 'functions, scope and closures' section 2013-07-04 19:49:24 +09:30
Adam Brenecki
3dfdab742d Miscellaneous edits to JavaScript 2013-07-03 15:21:03 +09:30
Adam Brenecki
8a870cab44 Add control structures 2013-06-30 18:57:40 +09:30
Adam Brenecki
3b8ece9932 Continue work on objects cont'd section 2013-06-30 18:14:53 +09:30
Adam Brenecki
c2d5429472 Tidy up section on variables, arrays and objects 2013-06-30 17:48:50 +09:30
Adam Brenecki
7c4bd7120c Edits to section on strings and numbers 2013-06-30 17:44:25 +09:30
Adam Brenecki
600b5b5b74 Added links to MDN, tidied intro 2013-06-30 17:33:10 +09:30