JavaScript inline if statement

0

Posted by Joe | Posted in JavaScript | Posted on 29-12-2009

The JavaScript inline if statement is identical to the one in C#:

varĀ forename = (gender == 'male') ? 'Joe' : 'Emily';

Post to Twitter Post to Delicious Post to Digg Post to Facebook Post to Reddit

Write a comment