We are constantly accelerating upwards and outwards from the Earth. I know, I can feel it.” Anon
A resource for web developers a code snippet library with step by step tutorials.

a resource for web developers...

       

Search Amazon

JavaScript: Basics plus tutorial code snippet 4a.

 

Up Up to JavaScript: Basics plus overview page

 

 

Shortcut notation 'if else' conditional.

Introducing the shortcut notation for the 'if else' conditional. Sometimes known as a ternary operator with the syntax '?:', a conditional expression equivalent to an 'if then else' and incorporated in a ternary statement:

condition ? if true : if false

 





Output view



Back to top

 

Bookmark and Share

 

Copyright © 2006-2010 justfigures.co.uk