JavaScript

36 lessons

Achievements
Combined Shape@2x

The Certificate

avatar

Embedding JS Code

Developers can embed the JS code directly within the web pages by placing it between the <script> and </script> tags. The <script> tag indicates to the browser that the contained statements are to be interpreted as executable script and not HTML, like so:

The JavaScript code in the above example will simply output a text message on the web page.

We'll get into outputs more in the next lessons.