-
When to use
typevs when to useinterface? -
constvsletvsvarconst customer = X ? null : await this.concert.getCustomer(Y);
-
Ternary operation:
const variable_name = condition ? expression1 : expression2is a shorthand way of writing an if-else statement- In English, this would be "if
conditionis true, assignvariable_namethe value ofexpression1. Else, assignevariable_namethe value ofexpression2" - Example:
const subnet-b2e38a9e