What is Javascript? – Javascript Tutorial
What is JavaScript?
This tutorial assumes beginner knowledge of HTML, and CSS.
JavaScript is the scripting language of the web. If you have ever wanted to add simple interactivity to web pages beyond links and without complicated server languages you will want to learn JavaScript. It is supported by all modern browsers and is as ubiquitous as HTML and CSS. This tutorial will teach you more about the language and how to use it to create the interactive user experiences that people have come to expect from the modern web.
Tools
Komodo Edit– Runs on Mac OS X, Windows, Linux
Allows us to write code much more efficiently by highlighting the syntax we will discuss throughout the curriculum.
Chrome – Runs on Mac OS X, Windows, Linux
Modern web browser that will allow us to preview and debug our content
Tutorial
This tutorial was created and is maintained by the W3 organization which manages HTML, CSS, JavaScript and many other web standards. It is arranged by how we teach the content in our workshops, but the material listed can be followed by individuals looking to learn more. We recommend the following order for ease of learning, and because later tutorials reference material in earlier tutorials.
Workshop 1
- What can you do with JavaScript?
- First look at the JavaScript
- Programming – The Real Basics
- JavaScript Functions
Workshop 2
- Objects in JavaScript
- Traversing the DOM
- Dynamic Style – Manipulating CSS with JavaScript
- Handling Events with JavaScript
Frequently Asked Questions
Why does my website run in a modern up to date browser, but not an older version of Internet Explorer?
Older versions of web browsers do not implement the most current features of the web languages, and in several instances forgo web standards in favor of proprietary solutions. You can never be sure that your website will run in all browsers without testing to see if your website works consistently. If you cannot test your website in multiple browsers online resources such as Can I Use allow you to look up what a browser supports.
When should we avoid JavaScript?
Despite the fact that JavaScript is a widely implemented and standardized language amongst web browsers you should always check to see if what you are trying to accomplish can be done in HTML, CSS, or (in some cases) a server side language first. This is because several older or low powered devices such as mobile phones have difficulties handling JavaScript. Also computers with higher security needs often disable JavaScript due to potential flaws. JavaScript is a very powerful tool, but remember to use it sparingly and look for alternative solutions.
Are there any other languages for programming client side on the web besides JavaScript?
Due to the fact that client side programming languages require the cooperation of all browser makers, JavaScript is the only language for client side web development. However several languages can be rewritten by a computer, via a process known as compilation, into JavaScript. A list of such programming languages is maintained by JashKenas.
Supplementary Resources
In no particular order these external resources supplement the tutorial by providing shortcuts to commonly used information and further learning.