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';
The JavaScript inline if statement is identical to the one in C#:
varĀ forename = (gender == 'male') ? 'Joe' : 'Emily';