Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Ternary operator

num =15
print("Positive" if num>=0 else "Negative")
Source by prepinsta.com #
 
PREVIOUS NEXT
Tagged: #Ternary #operator
ADD COMMENT
Topic
Name
1+2 =