Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js one line if

const condition = true;
// (condition) ? if : else
(condition) ? console.log("it is true") : console.log("it is false");
 
PREVIOUS NEXT
Tagged: #js #line
ADD COMMENT
Topic
Name
9+5 =