codegurukool.com · Free coding tutorials & online compiler

Home › JavaScript Tutorial › JS introduction

JS introduction

JavaScript makes pages interactive.

JavaScript runs in the browser, changes HTML and CSS, reacts to people and talks to servers. It is also used on servers with Node.js.

Example code

<h2 id='o'></h2>
<script>
o.textContent='Hello from JavaScript';
</script>

Run this code in the online editor

← Classes and errorsJS where to →