Actually this produces an issue. An undefined variable o. All valid Javascipt variable start with let
or const
document.querySelector('#my-fun-element').innerText = 'What a fun element!'
…is also valid javascript that fails in Observable. The issue is because the =
is serving multiple purposes. Again, variable assignment and hoisted function. They are mutually exclusive. Having some different operator will help explain why this fails.