JavaScript inline if statement

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

var forename = (gender == 'male') ? 'Joe' : 'Emily';
Posted on by Joe in JavaScript

Add a Comment