SyntaxFix
Write A Post
Hire A Developer
Questions
y = (y != undefined) ? y : x;
The parenthesis are not necessary, I just add them because I think it's easier to read this way.