Since JavaScript is an interpreted language, there are some common mistakes that wont display the code correctly on your browser.
1. Missing quotation marks - document . write(“hello world)
2. Case sensitive - document -> cannot be written as Document
3. Missing parenthesis/brackets - document . write(“hello world” )
4. Missing 'script' tag in the program (either opening or closing)
5. Variable names misspelt.