1var variable;
2if (condition)
3 variable = "something";
4else
5 variable = "something else";
6
7//is the same as:
8
9var variable = condition ? "something" : "something else";
1 if (isNaN(number)) return false
2 if (number >0) {
3 return number
4 } else {
5 return (`${Math.abs(number)}`)
6 }