MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/zfupl/javascript_tricks_you_may_not_know/c649p5o/?context=9999
r/javascript • u/SvetlanaLucky • Sep 06 '12
14 comments sorted by
View all comments
3
The dude should try to avoid words collapsed together, like
varmyVariable; deletesomeObj.val;
which should have been
var myVariable; delete someObj.val;
3 u/kristopolous Sep 06 '12 edited Sep 06 '12 agreed. It's totally sloppy. And these are all things that someone with a thorough JS education should know.Here's an example of something this could have been, in firefox, try this:function debugger() { alert ("hello world"); } debugger();Or the fact that the javascript duck typing can be overloaded. That's something most people actually don't know. -1 u/samplebitch Sep 06 '12 duck typing? 0 u/[deleted] Sep 06 '12 [deleted] 1 u/mgoulart Sep 06 '12 Don't be that guy. Link him directly to it: http://lmgtfy.com/?q=duck+typing
agreed. It's totally sloppy. And these are all things that someone with a thorough JS education should know.
Here's an example of something this could have been, in firefox, try this:
function debugger() { alert ("hello world"); } debugger();
Or the fact that the javascript duck typing can be overloaded. That's something most people actually don't know.
-1 u/samplebitch Sep 06 '12 duck typing? 0 u/[deleted] Sep 06 '12 [deleted] 1 u/mgoulart Sep 06 '12 Don't be that guy. Link him directly to it: http://lmgtfy.com/?q=duck+typing
-1
duck typing?
0 u/[deleted] Sep 06 '12 [deleted] 1 u/mgoulart Sep 06 '12 Don't be that guy. Link him directly to it: http://lmgtfy.com/?q=duck+typing
0
[deleted]
1 u/mgoulart Sep 06 '12 Don't be that guy. Link him directly to it: http://lmgtfy.com/?q=duck+typing
1
Don't be that guy. Link him directly to it: http://lmgtfy.com/?q=duck+typing
3
u/bart2019 Sep 06 '12
The dude should try to avoid words collapsed together, like
which should have been