javascript backticks and if statements

JavaScript
`${result['color'] ? 'color exists!' : 'color 5 does not exist!'}`
Source

Also in JavaScript: