79606216

Date: 2025-05-05 01:18:02
Score: 0.5
Natty:
Report link

Turns out the answer is, in fact, to declare the variables above the <!DOCTYPE html> tag. Not sure why my initial testing of this didn't work.

For those coming here with compiler errors but the error not being highlighted by the IDE, variables declared in the <head> section are not available in the <body> section even though the IDE is showing they're available to be referenced.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Bug Maker