Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

question mark and colon in javascript

const isBlack = false;const text = isBlack ? 'Yes, black!' : 'No, something else.';console.log(text);// "No, something else."
Source by www.robinwieruch.de #
 
PREVIOUS NEXT
Tagged: #question #mark #colon #javascript
ADD COMMENT
Topic
Name
4+3 =