Commit Graph

83 Commits

Author SHA1 Message Date
Kyle Mendes
575dc7c018 Adding missing semicolons 2017-10-27 16:09:35 -04:00
rlgreen91
966886c6a9 Corrects typo in prototype section. 2017-06-08 16:35:17 -05:00
Adam Brenecki
54eff5591a [javascript/en] Minor changes to formatting, prototype explanations
- Made a comment a complete sentence, to match the style of the rest of
  the document.
- Removed discussion of for/in over Arrays, since it's a can of worms,
  and for/of is more appropriate if ES6 operators are available.
- Reworded introduction to prototypes, and moved it with the rest of the
  prototype documentation.
2017-03-01 19:29:32 +10:30
Ravi Subramanian
21652477c2 [javascript/en] Clarify objects, remove premature reference to prototypes
- Prototypes are referenced in Section 3 before being discussed (in Section 5)
- Also, prototypes are referenced while talking about for-loops, which
  IMHO distracts from the discussion of the loop structure itself
- Added example that shows prototype-chain-walking via for-in in Section 5
2017-02-23 16:04:42 -08:00
Yi Hong Ang
6d351553ac add labeled loop breaking for Javascript (#2539) 2016-10-31 00:33:22 +01:00
Ryan
6e9e1f4af0 Added new resource to javascript 2015-10-31 16:49:57 -07:00
Kyle Mendes
08e6aa4e6e Adding a small blurb to extend upon string concatination 2015-10-28 17:25:44 -04:00
Adam Brenecki
c3a66e60a6 [javascript/en] Re-add note about truthiness of wrapped primitives
Previous incarnations of this section had `Number(0)` instead of
`new Number(0)`, which actually returns `0` due to the absence of the
`new` keyword; this commit re-adds that section and better still, makes
it actually correct!
2015-10-28 13:48:53 +10:30
Adam Brenecki
d4d471ef50 [javascript/en] Formatting fix 2015-10-28 13:27:48 +10:30
Adam Brenecki
c83eb6c6bc [javascript/en] Move comparisons to other languages into preamble 2015-10-28 13:26:24 +10:30
Corban Mailloux
a8d5105fab [javascript/en] Spacing and capitalization of comments
... and a few grammar fixes.
2015-10-27 22:47:03 -04:00
Corban Mailloux
61aa6a3e01 "wan't" -> "want" 2015-10-27 22:18:02 -04:00
Leonardy Kristianto
9c3c3dff45 Added resources to read for Javascript 2015-10-28 02:04:34 +08:00
Hunter Stevens
db4160710d Remove "feedback", fix link markdown 2015-10-23 13:14:38 -04:00
ven
257533fe5a fix #1726, thanks @fisktech 2015-10-21 23:18:38 +02:00
Sawyer Charles
7fdce9215a Fixed bracket placement 2015-10-19 16:00:22 -05:00
Sawyer Charles
d78518288b removed () 2015-10-19 12:42:23 -05:00
Sawyer Charles
3835cd26f5 [javascript/en] Added setInterval
Added the setInterval function provided by most browsers
2015-10-19 10:54:42 -05:00
Levi Bostian
8656cfe09f Merge pull request #1537 from xtrasmal/patch-1
Updated javascript.html.markdown
2015-10-18 12:00:18 -05:00
Cameron Wood
c23bba2b60 [javascript/en] Small typo fix
Just a simple 1-word typo fix
2015-10-18 05:46:35 -04:00
venegu
53366ebdbe Adding modulo division to JavaScript article 2015-10-17 22:21:25 -04:00
bharathkkb
80bb3a0642 Added backticks for a keyword.
Added backticks for the “this” keyword.
2015-10-16 11:41:52 -07:00
Xander Smalbil
841dcb5f09 Updated javascript.html.markdown
Added some additional information on declaring variables.
2015-10-15 22:38:44 +02:00
Levi Bostian
bd56a72723 Merge pull request #1372 from raphaelbn/patch-1
[javascript/en] Added for/in loop JavaScript
2015-10-09 10:02:12 -05:00
Raphael Nascimento
c3914e277b Added for/in loop JavaScript
Fixing code style
2015-10-08 18:34:03 -03:00
Gabriel Halley
a793d16e37 remove extra whitespace, explain NaN 2015-10-07 22:22:12 -04:00
Raphael Nascimento
f1711ddd4c [javascript/en] Added for/in loop JavaScript
more explanation about for/in java script.
2015-10-06 23:44:30 -03:00
Raphael Nascimento
fe52573118 Update javascript.html.markdown
For/In loop JavaScript
2015-10-06 20:51:47 -03:00
Philip Rowan
87d0c402fb [javascript] Fix for issue 1248
https://github.com/adambard/learnxinyminutes-docs/issues/1248
2015-10-01 18:34:11 -05:00
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