JavaScript Shorthand Coding Techniques

6 views
Skip to first unread message

Samuel Deering

unread,
Jul 26, 2011, 9:30:00 PM7/26/11
to We love jQuery
These shorthand coding tips will save you heaps of development time
and lead to writing better code!

http://www.jquery4u.com/javascript/shorthand-javascript-techniques/

Does anyone know of any more?

Greg Milby

unread,
Jul 26, 2011, 10:44:05 PM7/26/11
to we-love...@googlegroups.com
var big = (x > 10) ? true : false <<<i like this - i've never used ternary for an operation - usually just if a var is true or not (e.g. ..= (varName) ?...


:)
Reply all
Reply to author
Forward
0 new messages