I am working on a project and need to know what the name of the statement if officially called. I have used it a lot, I just no clue what the name is.
Example statement:
let x = didJump ? 10 : 5
I am working on a project and need to know what the name of the statement if officially called. I have used it a lot, I just no clue what the name is.
Example statement:
let x = didJump ? 10 : 5
The question mark is called thé "ternairy operator". The statement is called a "ternairy statement".