Introducing JavaScript
JavaScript notes on W3Schools.com
(This is self-study tutorial)
JavaScript is a scripting language, not a full programming language. It is also not an outgrowth of the Java programming language.
JavaScript may be added to the head, or to the body, of an HTML source document, but the effects are different!
/* This is a multiple-line
comment */
By doing this, non-JavaScript enabled browsers will ignore everything inside the comments. JavaScript enabled browsers are smart enough to ignore the first <!-- but correctly interprets the following codes. The free JavaScript codes you download are often written in such a way to be safe for non-JavaScript browsers. However new generation of XML/XHTML browsers may ignore everything inside comments tags!
house.color
Object is 'house', its property is 'color'
The color of the house is green.
<script type="text/javascript">
var answer
answer = 2.3
alert("answer is" + answer)
</script>
The above would create an alert box and
display the text: answer is 2.3.