• A basic knowledge of coding syntax and vocabulary


Vanilla JavaScript is another term used to refer to basic JavaScript and is used mainly in browsers. JavaScript is used in the manipulation of document and window elements. The main purpose of JavaScript is to add functionality to a website. Think of it as the electricity in a house, useful and allows the use of other items such as TVs.

To know

  • To use JavaScript you would place this code block in your website <script>/* Your code here */</script>
  • To comment in JavaScript use //Comment for single line and /* Comment */ for multi-line comments
  • JavaScript has many libraries to enhance it such as jQuery
  • JavaScript is supported in all browsers
  • Some functions are not supported in older browsers such as Internet Explorer


Last modified 3yr ago