JavaScript Variable with Question Mark

added by JavaScript Kicks
10/2/2019 7:29:54 AM

405 Views

If you are new to JavaScript, the question mark after a variable may be confusing to you. Let's shed some light into it. The question mark in JavaScript is commonly used as conditional operator -- called ternary operator when used with a colon (:) and a question mark (?)


0 comments