What is JavaScript?
JavaScript is the world's most popular computer programming language.
What does JavaScript do?
JavaScript is used to create interactive effects in web browsers. JavaScript can:
- Read and write to HTML elements
- React to a user's events. For example,
- Check compatability of web browser with a web page
- Store cookies to a vistor's browser (cookies are a temporary piece of information that your browser will remember)
What does JavaScript look like?
JavaScript is written in scripting language. JavaScript is incorporated into a web page by adding a script tag, <script>, and an end script tag, </script>, in the header or body of an HTML document. However, since JavaScript programming code can be hundreds of lines long, it is often written in a '.js' file and then linked to the html document.
How do I use JavaScript?
Step 1: Insert <script> and </script> tags into the <head> or <body> section of HTML page. The script tag will indicate where the JavaScript starts and ends.
Step 2: Begin programming JavaScript within the script tags! There are many things that JavaScript can do and each task will require a different script.
Comments - Ask questions and/or provide feedback below!
*you can comment as a guest without registering/signing in by clicking on the 'Name' box below and checking the 'I'd rather post as a guest' box. If you don't feel comfortable providing your own email, you can just make one up (e.g. fakeemail@gmail.com).