STEP 4 RUN SUBLIME TEXT On a PC Click Start Programs Sublime Text Or just click Sublime Text if it appears in the Recently added section On a Mac Click Finder Click Applications Make a shortcut by dragging Sublime Text from Finder onto your dock at the bottom of the Desktop sa Applications Click the Sublime Text icon STEP 5 SAY HELLO Carefully type this into lines 1 2 and 3 of your text editor Sublime Text should automatically indent lines for you but if it doesn't make sure you indent lines of code exactly as shown Sublime Text Mark the start of a JavaScript section Show a message box saying Hello The code will automatically indent Mark the end of the JavaScript section STEP 6 SAVE YOUR CODE STEP 7 VIEW YOUR PAGE 1 Click File Save Save to your Documents folder Type hello html as the filename Open your Documents folder Find the hello html file and double click it Your web page should now load in your normal web browser You should get a message saying Hello Hello WHY USE JAVASCRIPT INSIDE HTML CODE Although we are coding with JavaScript we need to put our file inside some HTML code to make it work HTML stands for HyperText Markup Language and is the language used to build web pages HTML is used to describe what objects or elements are shown on a web page If you are creating a simple game you need to use HTML to add an image and some text to show the score However HTML cant make the image more of the score change JavaScript is added to tell the image to move around when different keys are pressed or when the mouse is clicked It can also be used to display the score and make it change We need to use both HTML and JavaScript to make an interesting game JavaScript was designed to be added to HTML pages to make them more interactive You will learn about using different elements of HTML with JavaScript as you work through the programs in this