--- title: Where to --- ## Where to JavaScript is the programming language of HTML and the Web. In HTML, JavaScript must be inserted in the ` ``` Also, remember that you can place any number of `

JavaScript Testing

``` ### JavaScript in the `` Here, the JavaScript is placed in the . The function **onClicked** is created and is set to be fired when the button is clicked. ```html

JavaScript Testing

``` ### External Scripts Scripts can also be placed in external files. Let's create a file **script.js**. ##### script.js ```javascript window.alert("Hi!"); ``` This script can be included in an HTML document as so: ```html ``` _Hi!_ will still be alerted when the page is rendered. Remember, you do not need to include `