What is JavaScript

JavaScript is a programming language for making websites interactive.

  1. JavaScript is one of the main languages for web developers, the other two are HTML and CSS.
  2. JavaScript is a scripting language – so the computer can interpret it line by line rather than compiling it.
  3. JavaScript is different from Java or jScript. They are different programming languages.
  4. You might have seen JavaScript affects on website, for example it can be used to create sliding image banner, dropdown navigation menu, form validation and image animation etc.
  5. On web pages we use:
    1. HTML for content for example for showing a text, paragraph, image or link etc.
    2. CSS for presentation for example for applying colours, positioning of elements and size of text etc.
    3. JAVASCRIPT for behaviour for example for sliding images from right to left and showing form validation errors etc