-
Notifications
You must be signed in to change notification settings - Fork 29
/
ecmabot-factoids.json
5318 lines (5318 loc) · 224 KB
/
ecmabot-factoids.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"wait": 30000,
"factoids": {
"2048": {
"value": "2048 <http://gabrielecirulli.github.io/2048/>",
"creator": "ljharb",
"date": "2014-03-19T23:56:47.738Z",
"popularity": 1,
"editors": [],
"changes": []
},
"json_encode": {
"value": "When you need to pass PHP variables to JavaScript, use the PHP method json_encode. For example: var info = (<?php echo json_encode($info); ?>); However, JavaScript goes in .js files ONLY. Don't mix JS with your HTML output. See `!csp`.",
"popularity": 19,
"editors": [
"eboy"
]
},
"w3schools": {
"value": "W3Schools is not related to the W3C and has many problems: http://w3fools.com/",
"popularity": 157
},
"iframe": {
"value": "To get the document element of the iframe, use: iframe.contentWindow.document; However, cross-domain access to an iframe is disallowed.",
"popularity": 17
},
"this": {
"value": "If a function call is of the form `a.b()`, `this` will be the object you accessed the \"b\" property from. Otherwise, if it's of the form `a()`, `this` will be `undefined`, which is turned into the global object if the function isn't in strict mode. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/this http://javascriptweblog.wordpress.com/2010/08/30/understanding-javascripts-this/",
"popularity": 387,
"editors": [
"ImBcmDth",
"dwcook",
"Maxdamantus",
"ljharb",
"sacho"
],
"changes": [
{
"date": "2014-07-09T07:12:07.458Z",
"editor": "Maxdamantus",
"old-value": "If a function is called on an object, object.y(), then `this` within `y` refers to `object`. If called directly: y(), `this` refers to the global object - for browsers it's `window`. `this` can be set explicitly by using y.call(thisArg, argument1, argument2, ...), or with .apply() and .bind(). For further explanation, see: http://javascriptweblog.wordpress.com/2010/08/30/understanding-javascripts-this/",
"new-value": "If a function call is of the form `a.b()`, `this` will be the object you accessed the \"b\" property from. Otherwise, if it's of the form `a()`, `this` will be `undefined`, which is turned into the global object if the function isn't in strict mode. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/this"
},
{
"date": "2014-07-09T07:14:22.099Z",
"editor": "Maxdamantus",
"old-value": "If a function call is of the form `a.b()`, `this` will be the object you accessed the \"b\" property from. Otherwise, if it's of the form `a()`, `this` will be `undefined`, which is turned into the global object if the function isn't in strict mode. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/this",
"new-value": "If a function call is of the form `a.b()`, `this` will be the object you accessed the \"b\" property from. Otherwise, if it's of the form `a()`, `this` will be `undefined`, which is turned into the global object if the function isn't in strict mode. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/this"
},
{
"date": "2014-08-31T00:48:32.579Z",
"editor": "ljharb",
"old-value": "If a function call is of the form `a.b()`, `this` will be the object you accessed the \"b\" property from. Otherwise, if it's of the form `a()`, `this` will be `undefined`, which is turned into the global object if the function isn't in strict mode. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/this",
"new-value": "If a function call is of the form `a.b()`, `this` will be the object you accessed the \\\"b\\\" property from. Otherwise, if it's of the form `a()`, `this` will be `undefined`, which is turned into the global object if the function isn't in strict mode. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/this http://javascriptweblog.wordpress.com/2010/08/30/understanding-javascripts-this/"
},
{
"date": "2014-09-02T18:13:15.039Z",
"editor": "sacho",
"old-value": "If a function call is of the form `a.b()`, `this` will be the object you accessed the \\\"b\\\" property from. Otherwise, if it's of the form `a()`, `this` will be `undefined`, which is turned into the global object if the function isn't in strict mode. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/this http://javascriptweblog.wordpress.com/2010/08/30/understanding-javascripts-this/",
"new-value": "If a function call is of the form `a.b()`, `this` will be the object you accessed the b property from. Otherwise, if it's of the form `a()`, `this` will be `undefined`, which is turned into the global object if the function isn't in strict mode. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/this http://javascriptweblog.wordpress.com/2010/08/30/understanding-javascripts-this/",
"regex": "s/\\\\\"b\\\\\"/b/"
},
{
"date": "2014-09-02T18:13:54.167Z",
"editor": "sacho",
"old-value": "If a function call is of the form `a.b()`, `this` will be the object you accessed the b property from. Otherwise, if it's of the form `a()`, `this` will be `undefined`, which is turned into the global object if the function isn't in strict mode. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/this http://javascriptweblog.wordpress.com/2010/08/30/understanding-javascripts-this/",
"new-value": "If a function call is of the form `a.b()`, `this` will be the object you accessed the `b` property from. Otherwise, if it's of the form `a()`, `this` will be `undefined`, which is turned into the global object if the function isn't in strict mode. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/this http://javascriptweblog.wordpress.com/2010/08/30/understanding-javascripts-this/",
"regex": "s/the b property from/the `b` property from/"
},
{
"date": "2014-10-06T09:48:15.700Z",
"editor": "Maxdamantus",
"old-value": "If a function call is of the form `a.b()`, `this` will be the object you accessed the `b` property from. Otherwise, if it's of the form `a()`, `this` will be `undefined`, which is turned into the global object if the function isn't in strict mode. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/this http://javascriptweblog.wordpress.com/2010/08/30/understanding-javascripts-this/",
"new-value": "If a function call is of the form `a.b()`, `this` will be the object you accessed the \"b\" property from. Otherwise, if it's of the form `a()`, `this` will be `undefined`, which is turned into the global object if the function isn't in strict mode. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/this http://javascriptweblog.wordpress.com/2010/08/30/understanding-javascripts-this/",
"regex": "s/`b`/\"b\"/"
}
]
},
"closures": {
"value": "For experienced JavaScripters: http://jibbering.com/faq/faq_notes/closures.html For newbies: http://www.javascriptkit.com/javatutors/closures.shtml",
"popularity": 79
},
"cross-domain": {
"alias": "same",
"popularity": 2
},
"closure": {
"alias": "closures",
"popularity": 12
},
"paste": {
"value": "Show some code, but don't paste it on the channel. Sites like http://gist.github.com/ and http://bpaste.net/ are cool. You can also use http://jsbin.com , http://requirebin.com or http://jsfiddle.net/ to provide a test case we can run and help you with your problem.",
"popularity": 915,
"editors": [
"niggler",
"gkatsev",
"CoverSlide",
"PigDude",
"MJCD",
"Sorella",
"totemizer",
"ashnur"
]
},
"json": {
"value": "JavaScript Object Notation, see http://www.json.org/. Looks like literals in JS, but object keys and strings are always double-quoted. Remember: if it's not a string (if you don't need JSON.parse) it's not JSON. To convert an object to JSON, use JSON.stringify.",
"popularity": 54,
"editors": [
"therealklanni"
],
"changes": [
{
"date": "2014-04-15T17:40:42.302Z",
"editor": "therealklanni",
"old-value": "JavaScript Object Notation, see http://www.json.org/. Looks like literals in JS, but object keys and strings are always double-quoted. Remember: if it's not a string (if you don't need JSON.parse) it's not JSON.",
"new-value": "JavaScript Object Notation, see http://www.json.org/. Looks like literals in JS, but object keys and strings are always double-quoted. Remember: if it's not a string (if you don't need JSON.parse) it's not JSON. To convert an object to JSON, use JSON.stringify."
}
]
},
"code": {
"value": "Show some code, but don't paste it on the channel. Sites like http://gist.github.com/ and http://bpaste.net/ are cool. You can also use http://jsbin.com , http://requirebin.com or http://jsfiddle.net/ to provide a test case we can run and help you with your problem.",
"popularity": 541,
"editors": [
"CoverSlide",
"ph88",
"gkatsev",
"blackkbot"
],
"changes": [
{
"date": "2014-01-13T12:05:04.853Z",
"editor": "blackkbot",
"old-value": "Show some code. Code examples should be complete (sufficient to show the problem) and minimal (as short as possible while remaining complete). Go to http://jsbin.com/ or see !paste.",
"new-value": "Show some code, but don't paste it on the channel. Sites like http://gist.github.com/ and http://bpaste.net/ are cool. You can also use http://jsbin.com , http://requirebin.com or http://jsfiddle.net/ to provide a test case we can run and help you with your problem."
}
]
},
"callee": {
"alias": "recursion",
"popularity": 2
},
"harmony": {
"alias": "es6",
"popularity": 2
},
"cornify": {
"value": "`^nn~ <http://www.cornify.com/>",
"popularity": 14
},
"ecmascript": {
"value": "ECMAScript (pronounced Ek-ma-script) is the written, non-proprietary standard of JavaScript. JavaScript is a Mozilla-specific dialect which adds some features. JScript is Microsoft's dialect. ActionScript is a dialect used in Adobe Flash.",
"popularity": 8
},
"scoping": {
"value": "http://johnkpaul.com/blog/2013/02/11/what-is-hoisting-really/ https://developer.mozilla.org/en/JavaScript/Reference/Scope_Cheatsheet",
"popularity": 52,
"editors": [
"eboy"
]
},
"var": {
"value": "Always declare variables with `var`, or you will pollute the global scope. Using `var` will limit access to that variable to the current scope, whatever it is.",
"popularity": 71,
"editors": [
"j201"
]
},
"forms": {
"value": "Accessing form elements: Don't use document.formName.elementName. Use document.forms.formName.elements.elementName or getElementById, getElementsByName, or querySelector",
"popularity": 23
},
"scope": {
"alias": "scoping",
"popularity": 24
},
"form": {
"alias": "forms"
},
"hoisting": {
"alias": "scoping",
"popularity": 23
},
"same origin": {
"alias": "cross-domain",
"popularity": 2
},
"jsonlint": {
"value": "JSONLint - The JSON Validator. - http://www.jsonlint.com/",
"popularity": 0
},
"textContent": {
"value": "There is no single cross-browser way to get the inner text from an element (without HTML), so you need the following: var text = element.textContent || element.innerText;",
"popularity": 1
},
"innerHTML": {
"alias": "textContent"
},
"xy": {
"value": "The XY problem: You want to do X, but don't know how. You think you can solve it using Y, but don't know how to do that either. You ask about Y, which is a strange thing to want to do. Just ask about X.",
"popularity": 357,
"editors": [
"j201",
"sukima"
]
},
"flxhr": {
"value": "\"flXHR [flĕkʹsər], (flex-er), is a cross-browser, XHR-compatible tool for cross-domain Ajax (Flash) communication. It utilizes an invisible flXHR.swf instance that acts as sort of a client-side proxy for requests. https://github.com/flensed/flXHR\"",
"popularity": 6
},
"float2int": {
"value": "|0 is bitwise OR with 0 - a quick way to convert any value to a 32-bit integer, as well as any of these: x|0, x>>0, ~~x.",
"popularity": 2
},
"|0": {
"alias": "float2int"
},
"typeof": {
"value": "The typeof operator returns a string indicating the type of the unevaluated operand. Returns 'object', 'boolean', 'number', 'string', 'function', 'xml', or 'undefined'. Arrays return 'object'. Use: if (typeof variable !== \"undefined\") to check if a variable is defined.",
"popularity": 18
},
"comet": {
"value": "http://en.wikipedia.org/wiki/Comet_(programming)",
"popularity": 1
},
"rte": {
"value": "http://ckeditor.com/ http://tinymce.moxiecode.com/ http://www.themaninblue.com/experiment/widgEditor/ http://www.mozilla.org/editor/midasdemo/",
"popularity": 0
},
"prettyprint": {
"value": "Online JavaScript beautifier - http://jsbeautifier.org/",
"popularity": 1
},
"eloquent": {
"value": "Eloquent JavaScript is a comprehensive introductory Web-based book with examples and a built-in interpreter. http://eloquentjavascript.net/",
"popularity": 848,
"editors": [
"ericelliott",
"ashnur"
]
},
"tias": {
"value": "Try it and see, why dontcha?",
"popularity": 100
},
"css": {
"value": "Use Javascript to manipulate CSS stylesheets in a page. http://www.quirksmode.org/dom/w3c_css.html For other CSS problems, please try the #css channel.",
"popularity": 14
},
"recursion": {
"value": "See !recursion",
"popularity": 30
},
"ask": {
"value": "Don't ask to ask, or if anyone is here or alive or uses something. Just ask your question. http://www.mikeash.com/getting_answers.html http://www.catb.org/esr/faqs/smart-questions.html",
"popularity": 406,
"editors": [
"hemanth",
"eboy",
"CoverSlide",
"Mortchek",
"therealklanni"
],
"changes": [
{
"date": "2014-03-05T19:17:12.296Z",
"editor": "therealklanni",
"old-value": "Don't ask to ask, or if anyone is here or alive or uses something. Just ask your question. http://www.mikeash.com/getting_answers.html http://www.catb.org/esr/faqs/smart-questions.html http://guipn.com/how-to-get-helpful-help.htm",
"new-value": "Don't ask to ask, or if anyone is here or alive or uses something. Just ask your question. http://www.mikeash.com/getting_answers.html http://www.catb.org/esr/faqs/smart-questions.html"
}
]
},
"let": {
"value": "The let statement provides a way to associate values with variables within the scope of a block, without affecting the values of like-named variables outside the block. It is currently non-standard, but it will be standardized in ES6.",
"popularity": 8,
"editors": [
"j201"
]
},
"pm": {
"value": "Never ask for help in pm. People who help in the channel do so in part because of the rewards that brings; public recognition and helping *everyone* listening to learn. Why would anyone want to help in pm?",
"popularity": 41,
"editors": [
"j201"
]
},
"select": {
"value": "To get the value of a <select> form field: var select = document.getElementById(\"select\"); var value = select.options[select.selectedIndex].value;",
"popularity": 4
},
"doesn't work": {
"value": "What do you mean it doesn't work? Is it unemployed? What happens when you try to run it? What's the output? What's the error message? What did you want or expect to happen?",
"popularity": 241,
"editors": [
"dwcook"
]
},
"$": {
"value": "The `$` character has no special meaning in JavaScript, other than being allowed as a character in an variable name. It is used by some JavaScript libraries like jQuery, but traditionally used in machine generated JavaScript to avoid interference with other identifiers.",
"popularity": 16
},
"jquery": {
"value": "Please visit #jquery for questions related to jQuery. (by typing /join #jquery)",
"popularity": 197,
"editors": [
"niggler",
"Mortchek",
"PigDude",
"devin",
"dwcook",
"jaspr"
]
},
"mdc": {
"value": "Mozilla Developer Network @ http://developer.mozilla.org/",
"popularity": 52
},
"mdn": {
"alias": "mdc",
"popularity": 41
},
"debugging": {
"alias": "console"
},
"eval": {
"value": "The `eval` function (and its cousins) have two particular use cases: macro expansion, and evaluation of dynamically generated programs. If you don't know any of these terms, `eval` is not the answer for your problem. For more information on what `eval` is and what it should be used for, see: http://blog.racket-lang.org/2011/10/on-eval-in-dynamic-languages-generally.html.",
"popularity": 41,
"editors": [
"Sorella"
]
},
"property access": {
"value": "Property access: myobject.foo is just another way of saying myobject['foo']. This means that if property = 'foo', it's also the same as myobject[property].",
"popularity": 2
},
"hammertime": {
"value": "━━▊ ━━▊ ━━▊",
"popularity": 22
},
"wait": {
"value": "Don't feel ignored and repeat your question quickly; if nobody knows your answer, nobody will answer you. While you wait, try searching https://developer.mozilla.org/en/JavaScript or https://developer.mozilla.org/en/DOM || You might also consider reading: http://www.catb.org/~esr/faqs/smart-questions.html",
"popularity": 13
},
"encodeURIComponent": {
"value": "Always use `encodeURIComponent` to put query strings together. For example: \"foo=\"+encodeURIComponent(foo)+\"&bar=\"+encodeURIComponent(bar). Strings are encoded in UTF-8 format.",
"popularity": 1
},
"encodeURI": {
"alias": "encodeURIComponent"
},
"escape": {
"alias": "encodeURIComponent"
},
"document.write": {
"value": "document.wrong. Please use something more modern and less prone to doing confusing things. This function tries to write to the current document. If the document has already been processed, the document will be replaced with a blank one with your argument. If you don't want that, use the proper DOM methods instead.",
"popularity": 153
},
"cross-browser": {
"value": "\"Cross-browser\" is a buzz word used to describe a resource that works in multiple browsers. However, its meaning is diluted in popular culture. Its true meaning is a described resource that works in a maximal amount of browsers, therefore working \"across\" environmental divides. See !multi-browser for the popular, misused definition.",
"popularity": 2
},
"quirksmode": {
"alias": "cross-browser"
},
"rimshot": {
"value": "Ba dun tshh... http://instantrimshot.com/classic/?sound=rimshot",
"popularity": 6
},
"sadtrombone": {
"value": "Wah wah wah waahhh... http://www.sadtrombone.com/",
"popularity": 1
},
"ugt": {
"value": "Universal Greeting Time (or UGT) is a convention that states when a user enters an IRC channel it is always morning and upon leaving it is always night, regardless of the actual physical locations of the users in the channel. http://www.total-knowledge.com/~ilya/mips/ugt.html",
"popularity": 54
},
"crickets": {
"value": "crickets *chirp* *chirp* *chirp*... http://instantrimshot.com/index.php?sound",
"popularity": 3
},
"jsfiddle": {
"alias": "code",
"popularity": 14
},
"member access": {
"alias": "property access"
},
"ES5": {
"value": "ES5 is edition 5 of ECMA-262, the ECMAScript specification: http://es5.github.com/ http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf",
"popularity": 0
},
"w3fools": {
"alias": "w3schools",
"popularity": 26
},
"innerText": {
"alias": "textContent"
},
"console": {
"value": "The console object will provide you with an easy way to check the values of some variables, instead of the blocking alert() function. See !debug",
"popularity": 82,
"editors": [
"ashnur"
]
},
"debug": {
"value": "Browser-based debuggers -- Firefox <https://developer.mozilla.org/en-US/docs/Tools/Web_Console>, Safari <https://developer.apple.com/technologies/safari/developer-tools.html>, Chrome <https://developers.google.com/chrome-developer-tools/docs/overview>, Opera <http://www.opera.com/dragonfly/>, IE <http://msdn.microsoft.com/en-us/library/dd565625%28v=vs.85%29>",
"popularity": 232,
"editors": [
"j201",
"FireFly"
]
},
"events": {
"value": "QuirksMode Events guide <http://www.quirksmode.org/js/introevents.html>",
"popularity": 118
},
"botabuse": {
"value": "Please investigate me in a private message, so we can keep the channel clutter to a minimum. /msg ecmabot usage",
"popularity": 26
},
"abuse": {
"alias": "botabuse",
"popularity": 13
},
"about": {
"value": "I'm written entirely in JavaScript using Node.js. See under my covers at Github: <https://github.com/oftn/oftn-bot>",
"popularity": 85
},
"help": {
"value": "For help, ask your question. Be patient. Code samples should be pasted in a paste service (see !paste). Tell us 1) what you want to happen, 2) what is actually happening, and 3) any error messages you find (see !describe and !debug).",
"popularity": 2228,
"editors": [
"ashnur"
]
},
"bracket access": {
"value": "yourObject.foobar is just another way of saying yourObject['foobar']. So of course if varName = 'foobar', then it's also the same as yourObject[varName]. Dot notation is preferred to bracket notation except where the property name would be an invalid identifier. The same applies to quoting keys inside object literals - don't do it unless you have to.",
"popularity": 22,
"editors": [
"ljharb"
],
"changes": [
{
"date": "2014-04-15T00:49:09.974Z",
"editor": "ljharb",
"old-value": "yourObject.foobar is just another way of saying yourObject['foobar']. So of course if varName = 'foobar', then it's also the same as yourObject[varName]. Dot notation is preferred to bracket notation except where the property name would be an invalid identifier. The same applies to keys inside object literals.",
"new-value": "yourObject.foobar is just another way of saying yourObject['foobar']. So of course if varName = 'foobar', then it's also the same as yourObject[varName]. Dot notation is preferred to bracket notation except where the property name would be an invalid identifier. The same applies to quoting keys inside object literals - don't do it unless you have to."
}
]
},
"bracketaccess": {
"alias": "bracket access"
},
"bracket": {
"alias": "bracket access",
"popularity": 17
},
"ops": {
"value": "The ##javascript ops are: GarethAdams buu Gozzy Boki Phrogz Woosta dorward Twey inimino gkatsev dwcook. In case of an emergency requiring op attention, activate !emergency",
"popularity": 107,
"editors": [
"Mortchek",
"dwcook"
]
},
"str->num": {
"value": "parseFloat(str, 10), parseInt(str, 10), +str",
"popularity": 2
},
"string->num": {
"alias": "str->num"
},
"not working": {
"alias": "doesn't work"
},
"resources": {
"value": "!books, !es5, !gcu, !mdn, !owsc, !quirksmode, !caniuse, !crockford",
"popularity": 9,
"editors": [
"Agamemnus",
"Havvy"
],
"changes": [
{
"date": "2013-12-21T07:57:26.552Z",
"editor": "Agamemnus",
"old-value": "!eloquent, !es5, !gcu, !mdn, !owsc, !quirksmode",
"new-value": "!eloquent, !es5, !gcu, !mdn, !owsc, !quirksmode, !caniuse"
},
{
"date": "2013-12-26T07:18:25.937Z",
"editor": "Havvy",
"old-value": "!eloquent, !es5, !gcu, !mdn, !owsc, !quirksmode, !caniuse",
"new-value": "!books, !es5, !gcu, !mdn, !owsc, !quirksmode, !caniuse, !crockford"
}
]
},
"atwood's law": {
"value": "Any application that can be written in JavaScript, will eventually be written in JavaScript.",
"popularity": 2
},
"associative": {
"value": "Arrays in JS are not associative arrays (like in PHP), but are intended to be accessed by numeric index. \"var a=[]; a.foo = 1;\" is not standard usage. http://andrewdupont.net/2006/05/18/javascript-associative-arrays-considered-harmful/",
"popularity": 10
},
"es5": {
"value": "An annotated, hyperlinked, HTML view of Edition 5.1 of the ECMAScript Specification. <http://es5.github.com/>",
"popularity": 50
},
"node.js": {
"value": "Node.js is an event-driven I/O framework for the V8 JavaScript engine on Unix-like and Windows platforms. It is intended for writing scalable network programs such as web servers. For Node.js help, see #node.js",
"popularity": 25
},
"str->int": {
"value": " [parseInt('1', 10), Number('1'), +'1', 1*'1', ~~'1', '1'>>0, '1'|0] // each item in the list is a way of doing string->int conversions. Items from ~~ onwards only work for 32bit integers. You likely don't want parseInt, unless you want to convert something like `1001 nights` to the number `1001`. See !parseint.",
"popularity": 16,
"editors": [
"Sorella"
]
},
"garden": {
"value": "JavaScript Garden is a growing collection of documentation about the most quirky parts of the JavaScript programming language. It gives advice to avoid common mistakes, subtle bugs, as well as performance issues and bad practices that non-expert JavaScript programmers may encounter on their endeavours into the depths of the language. <http://bonsaiden.github.com/JavaScript-Garden/>",
"popularity": 3
},
"numbers": {
"value": "The Number type has exactly 2^64 − 2^53 + 3 values, representing the double-precision 64-bit format IEEE 754 values as specified in the IEEE Standard for Binary Floating-Point Arithmetic, except that the 2^53 − 2 distinct “Not-a-Number” values of the IEEE Standard are represented as a single special NaN value. : http://www.2ality.com/2012/04/number-encoding.html",
"popularity": 57,
"editors": [
"ashnur"
]
},
"objects": {
"value": "A JavaScript object is a set of properties. A property name is a string, a property value is any JS value. See: Working with Objects https://developer.mozilla.org/en/JavaScript/Guide/Working_with_Objects",
"popularity": 17
},
"enumeration": {
"value": "The mechanics and order of enumerating the properties is not specified. Properties of the object being enumerated may be deleted during enumeration.",
"popularity": 1
},
"undefined": {
"value": "The undefined type has exactly one value, called `undefined`. Any variable that has not been assigned a value has the value `undefined`.",
"popularity": 6
},
"booleans": {
"value": "The boolean type represents a logical entity having two values, called `true` and `false`.",
"popularity": 1
},
"minimal": {
"value": "A minimal test case should contain precisely the HTML and JavaScript necessary to demonstrate the problem, no more and no less. If the JavaScript is more than 42 lines, it is probably not a minimal test case.",
"popularity": 126
},
"psychic": {
"value": "You're asking a JavaScript question, but you're not letting us know what you are doing. Please, show us the HTML/JS that the browser sees WHEN THE PROBLEM OCCURS. If you have content inserted by ajax, paste the code *with* that content. We're not psychic, dude. See also !minimal",
"popularity": 5
},
"dom": {
"value": "The DOM API allows you to interact with your document with JavaScript. <https://developer.mozilla.org/en/DOM>",
"popularity": 28
},
"node": {
"alias": "node.js",
"popularity": 11
},
"mootools": {
"value": "For help with MooTools-related problems, visit the #mootools channel.",
"popularity": 2
},
"equivalent": {
"value": "Instead of asking what's JavaScript's equivalent of `x' in `y' language, tell us what `x' does, and what you expect to achieve using it. Chances are we don't know `y', or you're trying something silly in JS.",
"popularity": 0
},
"enter": {
"value": "Please try to keep your questions/responses on one line. Don't use the \"Enter\" key as punctuation!",
"popularity": 13
},
"usage": {
"value": "You may use me to run tiny JavaScript snippets and retrieve factoids. See <https://github.com/oftn/oftn-bot/wiki/Guide-to-Ecmabot>.",
"popularity": 70
},
"jshint": {
"value": "A fork of jslint, made to be more configurable on how strict you want it to be, which is overall a great way to make your programs less error-prone. <http://jshint.com/>",
"popularity": 17,
"editors": [
"yorick",
"Sorella"
]
},
"jslint": {
"value": "Douglas Crockford's tool for testing his 'Code Conventions' for JavaScript. It includes both syntax checking and very particular style conventions, but is an excellent way to make your programs less error-prone. <http://www.jslint.com/> See also !jshint for a similar tool that's less particular about style.",
"popularity": 18,
"editors": [
"yorick"
]
},
"uuid": {
"value": "'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {var r = Math.random()*16|0,v=c=='x'?r:r&0x3|0x8;return v.toString(16);});",
"popularity": 4
},
"eventintro": {
"value": "JavaScript - Introduction to Events <http://www.quirksmode.org/js/introevents.html>"
},
"gtfo": {
"value": "This is a channel for help with JavaScript, the language, not for the APIs of some JavaScript library you found. Read the documentation for your library, contact the maintainer, find their IRC channel, but don't expect us to know how it works (see !shoo).",
"popularity": 19
},
"homework": {
"value": "We won't do your homework for you. Period. We can help, but we'll want to see some effort, and we'll expect you to read docs rather than get spoon-fed.",
"popularity": 34
},
"no": {
"value": "Don't make shit up.",
"popularity": 17
},
"spelling": {
"value": "Spelling and capitalization are important in programming, unless you are using PHP.",
"popularity": 17
},
"submit": {
"value": "Do you have a form element with name=\"submit\"? That confuses some browsers. When you call form.submit(), it thinks you're talking about the name=\"submit\" element."
},
"sleep": {
"value": "JavaScript doesn't have a sleep command -- as it's single threaded (if that makes no sense, ask). Instead, use the setTimeout function. Example: `do_this(); window.setTimeout(do_this_in_after_at_least_2seconds, 2e3);`",
"popularity": 15,
"editors": [
"Sorella"
]
},
"ternary": {
"value": "var result = expr ? a : b; is equivalent to: var result; if (expr) { result = a; } else { result = b; }",
"popularity": 3
},
"performance": {
"value": "Speed Up Your JavaScript [including dom manipulation]: <http://www.youtube.com/watch?v=mHtdZgou0qU#t=131s> (56 minutes)",
"popularity": 12
},
"alert": {
"value": "The alert() function opens a simple window that blocks your script to show a message box. For debugging purposes, you should use the console functions. See !console",
"popularity": 78
},
"prompt": {
"value": "The prompt() function opens a simple window that blocks your script to show a message box with an area for the user to enter text. This text is then returned (or null if no text was entered).",
"popularity": 4
},
"pad": {
"value": "function pad2(n){return (\"0\"+n).slice(-2)}",
"popularity": 2
},
"console.log": {
"alias": "console",
"popularity": 1
},
"default": {
"value": "JavaScript has no default parameters. You can handle this in different ways depending on what data you consider a valid value. If anything but undefined is valid, use `if (typeof x === 'undefined') { x = 'default'; }` if anything but null and undefined are valid, use `if (x == null) { x = default'; }` if anything but falsy values are valid, use `if (!x) { x = 'default'; } or `x = x || 'default';`.",
"popularity": 31
},
"speed": {
"value": "Yahoo! Best Practices for Speeding Up Your Web Site <http://developer.yahoo.com/performance/rules.html>",
"popularity": 1
},
"php": {
"alias": "backend",
"popularity": 20
},
"debugger": {
"alias": "debug",
"popularity": 3
},
"chromedevtools": {
"value": "http://www.youtube.com/watch?v=N8SS-rUEZPg",
"popularity": 5
},
"tag": {
"value": "Know the difference between \"element\" and \"tag\". In \"<p id=x>...</p>\", \"<p id=x>\" is a start tag, and \"</p>\" is an end tag. Taken together, the entire paragraph is a p *element*, not a tag. document.getElementById('x') returns an element, not a tag. Tags do not exist in the DOM, only in the markup.",
"popularity": 5
},
"`": {
"value": "A relic of a lost age",
"popularity": 2
},
"html-regex": {
"value": "http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454",
"popularity": 1
},
"spec": {
"value": "Language Specification (3 [widely supported]) http://www.mozilla.org/js/language/E262-3.pdf (5 [current]) http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf You can use !ecma topic or !ecma 1.2.3 to get a link to specific parts of ECMA-262 5th edition",
"popularity": 11
},
"compat": {
"value": "ECMAScript 5 compatibility table by kangax: <http://kangax.github.com/es5-compat-table/>. Also see !quirksmode",
"popularity": 7
},
"atwood": {
"alias": "atwood's law",
"popularity": 2
},
"js": {
"value": "did you mean: recursive acronym for JavaScript is not Java.",
"popularity": 17
},
"comparisons": {
"value": "Using == and != should be avoided, since they perform coercion giving unexpected results. Use === and !== instead. See also: http://zero.milosz.ca/ http://es5.github.io/#x11.9.3",
"popularity": 66,
"editors": [
"jrajav",
"j201",
"dsamarin",
"Sorella"
],
"changes": [
{
"date": "2014-07-06T05:51:16.880Z",
"editor": "j201",
"old-value": "Using == and != should be avoided, since they perform coercion giving unexpected results. Use === and !== instead. <http://zero.milosz.ca/> See also: http://es5.github.io/#x11.9.3",
"new-value": "Using == and != should be avoided, since they perform coercion giving unexpected results. Use === and !== instead. http://zero.milosz.ca/ See also: http://es5.github.io/#x11.9.3",
"regex": "s/[<>]//g"
},
{
"date": "2014-07-06T05:52:09.582Z",
"editor": "j201",
"old-value": "Using == and != should be avoided, since they perform coercion giving unexpected results. Use === and !== instead. http://zero.milosz.ca/ See also: http://es5.github.io/#x11.9.3",
"new-value": "Changed `comparisons` to: Using == and != should be avoided, since they perform coercion giving unexpected results. Use === and !== instead. See also: http://zero.milosz.ca/ http://es5.github.io/#x11.9.3"
},
{
"date": "2014-07-06T05:53:12.499Z",
"editor": "j201",
"old-value": "Changed `comparisons` to: Using == and != should be avoided, since they perform coercion giving unexpected results. Use === and !== instead. See also: http://zero.milosz.ca/ http://es5.github.io/#x11.9.3",
"new-value": "Using == and != should be avoided, since they perform coercion giving unexpected results. Use === and !== instead. See also: http://zero.milosz.ca/ http://es5.github.io/#x11.9.3"
}
]
},
"libraries": {
"alias": "gtfo"
},
"libs": {
"alias": "gtfo"
},
"sosf": {
"value": "Son of Suckerfish Dropdowns, a simple technique for making dropdown menus with minimal JavaScript merely for support in IE6: http://www.htmldog.com/articles/suckerfish/dropdowns/",
"popularity": 2
},
"alot": {
"value": "Do you like to hug alot? http://bit.ly/aVDMTo",
"popularity": 1
},
"drde": {
"value": "It's U+22F1 DOWN RIGHT DIAGONAL ELLIPSIS \"⋱\"",
"popularity": 4
},
"capitalization": {
"alias": "spelling"
},
"private": {
"value": "Public and private style scoping does not exist in the traditional sense in javascript. For a good knowledge base on the topic, please see http://javascript.crockford.com/private.html",
"popularity": 17,
"editors": [
"MJCDead"
]
},
"source": {
"value": "My source code is available at: https://github.com/oftn/oftn-bot/",
"popularity": 68
},
"not-our-library": {
"alias": "gtfo"
},
"firebug": {
"value": "see !debug",
"popularity": 7,
"editors": [
"ashnur"
]
},
"won't work": {
"alias": "doesn't work"
},
"same": {
"value": "The same-origin policy prevents access to most methods and properties across pages on different sites (even those inside iframes). Short version: for XHR and cross-frame-interaction to work, this://this.this.and:this/ have to be the same. Alternatives: A server-side proxy, the Dojo iframe trick, CORS, and JSONP. See also: !jsonp, !cors.",
"popularity": 99
},
"jsonp": {
"value": "JSONP is an insecure, but workable way to allow cross-domain requests. It consists of inserting a <script> element pointing to a generated script which runs the callback you specify in URL with the response data: <script src=\"http://some.api/api.js?callback=blah\"/> and server has in api.js ’<?= GET['callback'] ?>(<? '{generate:\"response\", data: \"here\"}' ?>)’. See also: !same",
"popularity": 29
},
"cors": {
"value": "Cross-origin resource sharing (http://www.w3.org/TR/cors/) allows browser to negotiate access for cross-domain requests - for example with XMLHttpRequest - as a way to work around the same-origin policy. See also: !same, http://caniuse.com/cors , https://developer.mozilla.org/en/HTTP_access_control",
"popularity": 109
},
"point": {
"value": "Don't ask to ask, don't ask if someone is available. Just get to the point, and then wait a while.",
"popularity": 4
},
"http": {
"value": "Any Web developer worthy of the name must have a strong understanding of HTTP. http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol, http://www.w3.org/Protocols/rfc2616/rfc2616.html, http://www.jmarshall.com/easy/http/",
"popularity": 9,
"editors": [
"gkatsev"
],
"changes": [
{
"date": "2014-10-03T00:52:25.478Z",
"editor": "gkatsev",
"old-value": "Any Web developer worthy of the name must have a strong understanding of HTTP. http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol, http://www.w3.org/Protocols/rfc2616/rfc2616.html, http://www.jmarshall.com/easy/http/, and http://tomayko.com/writings/rest-to-my-wife should be useful.",
"new-value": "Any Web developer worthy of the name must have a strong understanding of HTTP. http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol, http://www.w3.org/Protocols/rfc2616/rfc2616.html, http://www.jmarshall.com/easy/http/"
}
]
},
"reduction": {
"value": "How and why to reduce your page: http://css-tricks.com/reduced-test-cases/ http://webkit.org/quality/reduction.html https://developer.mozilla.org/en/Reducing_testcases",
"popularity": 1
},
"ajax-upload": {
"value": "Ajax Upload; A file upload script with progress-bar, drag-and-drop: http://valums.com/ajax-upload/",
"popularity": 1
},
"guide": {
"value": "MDN JavaScript Guide: https://developer.mozilla.org/en/javascript/guide",
"popularity": 3
},
"clj": {
"value": "comp.lang.javascript, the JS Usenet group: http://groups.google.com/group/comp.lang.javascript/topics",
"popularity": 1
},
"history": {
"value": "Old style, change window.location.hash: https://developer.mozilla.org/en/DOM/window.location | Newer style, listen for window's hashchange event: https://developer.mozilla.org/en/DOM/window.onhashchange | Newest style, use the HTML5 History API: https://developer.mozilla.org/en/DOM/Manipulating_the_browser_history",
"popularity": 3
},
"last one only": {
"value": "If something is only being applied to the 'last' one of many, you have a scoping problem. e.g.: in for (i=0; i<5; ++i) {doX(function(){ doY(i) })}; `doY' might only receive 5 as a value. You can solve this using closures, so see !closures. For more info see http://www.mennovanslooten.nl/blog/post/62/",
"popularity": 96,
"editors": [
"yansanmo"
],
"changes": [
{
"date": "2014-04-20T20:23:09.650Z",
"editor": "yansanmo",
"old-value": "If something is only being applied to the 'last' one of many, you have a scoping problem. e.g.: in for (i=0; i<5; ++i) {doX(function(){ doY(i) })}; `doY' might only receive 4 as a value. You can solve this using closures, so see !closures. For more info see http://www.mennovanslooten.nl/blog/post/62/",
"new-value": "If something is only being applied to the 'last' one of many, you have a scoping problem. e.g.: in for (i=0; i<5; ++i) {doX(function(){ doY(i) })}; `doY' might only receive 5 as a value. You can solve this using closures, so see !closures. For more info see http://www.mennovanslooten.nl/blog/post/62/"
}
]
},
"jscript": {
"value": "\"JScript\" is not an abbreviation for JavaScript, but the name of a specific implementation."
},
"prototype": {
"value": "JavaScript uses prototypal inheritance, where Objects inherit directly from other Objects (there's no !classes). This post covers the foundations of that: http://yehudakatz.com/2011/08/12/understanding-prototypes-in-javascript/",
"popularity": 96
},
"innerhtml": {
"value": "InnerHTML is fast, but has its quirks. DOM methods are a good alternative - without the speed and readability (http://xrl.us/bmaiz). To read a list of innerHTML quirks and possible workarounds, see http://js.isite.net.au/faq/innerHTML)",
"popularity": 40
},
"io": {
"value": "JavaScript has no notion of input/output. IO, including network access, must be mediated by host objects, which your environment must provide (that is, the environment in which you are running the script, like a browser)"
},
"testcase": {
"value": "Show some code, but don't paste it on the channel. Sites like http://gist.github.com/ and http://bpaste.net/ are cool. You can also use http://jsbin.com , http://requirebin.com or http://jsfiddle.net/ to provide a test case we can run and help you with your problem.",
"popularity": 62,
"editors": [
"MJCD",
"totemizer",
"ashnur"
]
},
"properties": {
"value": "foo.bar and foo[\"bar\"] are both ways to access a property on a JavaScript object; use the latter when the property name is not a legal identifier (e.g. foo[\"my-cats\"] or foo[\"emails[]\"]) or when you need to construct the property name from a variable (e.g. var prop = \"bar\"; var x = foo[prop]).",
"popularity": 15
},
"document.wrong": {
"alias": "document.write",
"popularity": 5
},
"parseint": {
"value": "If you want to convert something to a Number, don't use `parseInt`, just convert it to a Number using `Number(x)`. parseInt will convert it to a String, then extract the first numeric characters in that String that are allowed in the specified radix, THEN convert those to a Number. You only use it for things like parseInt('500 days of Summer') => 500",
"popularity": 32,
"editors": [
"sorella"
]
},
"trust": {
"value": "Stop worrying and TRUST THE GARBAGE COLLECTOR.",
"popularity": 1
},
"gcu": {
"value": "Google Code University: HTML, CSS, and Javascript from the Ground Up <http://code.google.com/edu/submissions/html-css-javascript/>",
"popularity": 3
},
"owsc": {
"value": "Opera Web Standards Curriculum: Start-to-finish curriculum for learning modern web standards: <http://dev.opera.com/articles/wsc/>",
"popularity": 5
},
"truthy": {
"value": "The 'falsy' values in JavaScript are undefined, null, 0, -0, NaN, '', and false. The 'truthy' values are all other values. All objects are truthy. There is nothing both truthy and falsy, or neither truthy nor falsy.",
"popularity": 72,
"editors": [
"Mortchek",
"ljharb",
"dwcook",
"ckknight"
]
},
"operators": {
"value": "https://developer.mozilla.org/en/JavaScript/Reference/Operators",
"popularity": 7
},
"for..in": {
"value": "for..in is not to loop through indices/values of an array. Use for(init;cond;step) or Array#forEach. For..in iterates over *all* enumerable properties of an object, without any defined order.",
"popularity": 13
},
"intro": {
"value": "https://developer.mozilla.org/en-US/learn/javascript",
"popularity": 8
},
"library": {
"alias": "gtfo",
"popularity": 2
},
"experience": {
"value": "\"experience is never wasted! don't feel down\"",
"popularity": 3
},
"timeout": {
"value": "Use setTimeout for guaranteed delay (callbacks will be delayed at least x ms from the last execution). use setInterval for guaranteed frequency (callbacks will be called at least every x ms, regardless of previous executions).",
"popularity": 15,
"editors": [
"gkatsev"
]
},
"holistic-performance": {
"value": "\"Holistic performance encompasses two notions. A) Performance includes filesize, load time and parse time as well as execution time. B) Try to keep performance across browsers even where possible. From John Resig's speech: http://ontwik.com/javascript/velocity-2011-john-resig-holistic-performance/\"",
"popularity": 4
},
"comma": {
"value": "\"The humble comma has a more complex role in javascript than it may, at first, appear. Take a gander at this for details : http://javascriptweblog.wordpress.com/2011/04/04/the-javascript-comma-operator/\"",
"popularity": 8
},
"fastest": {
"value": "Please refrain from asking broad questions such \"What's the easiest way to do X?\" or \"Fastest way to do Y?\". Explain the context, what you want to do and ask one well defined question.",
"popularity": 6
},
"single-threaded": {
"value": "Browser JS is single-threaded and shares a thread with the rendering engine. That means that the browser can't render the page while it's executing JS, and it can't execute JS while it's rendering the page. There's NO parallelism (except for webworkers).",
"popularity": 5
},
"str2num": {
"value": "There are a variety of ways to convert a string to a number. See http://phrogz.net/JS/string_to_number.png for the functional \"problems\" with some of them. See http://jsperf.com/convert-string-to-number-techniques for the performance impacts.",
"popularity": 1
},
"property": {
"alias": "properties",
"popularity": 2
},
"control-click on table cells": {
"value": "Solution is to add \"-moz-user-select: none;\" for table elements that you want to disable this behavior."
},
"coffeescript": {
"value": "CoffeeScript is not JavaScript; try #coffeescript for help.",
"popularity": 23,
"editors": [
"FireFly"
]
},
"fast": {
"alias": "fastest"
},
"best": {
"alias": "fastest",
"popularity": 3
},
"next": {
"value": "Another satisfied customer! NEXT!!",
"popularity": 198
},
"iife": {
"value": "An \"immediately invoked function expression\" is an expression that both creates and calls a function. As with any function call, a scope is created. \"(function () { /* ... */ }())\" is the most common form. For more info: http://benalman.com/news/2010/11/immediately-invoked-function-expression/",
"popularity": 290,
"editors": [
"dwcook",
"Agamemnus",
"ljharb"
],
"changes": [
{
"date": "2014-03-14T05:16:13.778Z",
"editor": "Agamemnus",
"old-value": "An \"immediately invoked function expression\" is an expression that both creates and calls a function. As with any function call, a scope is created. \"(function () { /* ... */ }())\" is a common form. For more info: http://benalman.com/news/2010/11/immediately-invoked-function-expression/",
"new-value": "An \"immediately invoked function expression\" is an expression that both creates and calls a function. As with any function call, a scope is created. \"(function () { /* ... */ }());\" is a common form. \"void function () {/* ... */} ()\" can also be used. For more info: http://benalman.com/news/2010/11/immediately-invoked-function-expression/"
},
{
"date": "2014-03-15T05:50:25.623Z",
"editor": "ljharb",
"old-value": "An \"immediately invoked function expression\" is an expression that both creates and calls a function. As with any function call, a scope is created. \"(function () { /* ... */ }());\" is a common form. \"void function () {/* ... */} ()\" can also be used. For more info: http://benalman.com/news/2010/11/immediately-invoked-function-expression/",
"new-value": "An \"immediately invoked function expression\" is an expression that both creates and calls a function. As with any function call, a scope is created. \"(function () { /* ... */ }())\" is the most common form. For more info: http://benalman.com/news/2010/11/immediately-invoked-function-expression/"
}
]
},
"away": {
"value": "Please do not use noisy away messages and nicks. It is annoying and unnecessary. Use the command \"/away <reason>\" to set your client away silently.",
"popularity": 7
},