Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js

Get familiar with console

Exercise yourself by printing to console your age at once, then your name. Do this one time by using internal JS and one by using totally external. Take care of the connection from the beginning and see the results.

p.s. Pay attention to different data types!

JS Comments

 

Javascript comments fulfill the same purpose with HTML and CSS comments. We write comments only to document our code, so if another member of our team has to read our code, in order to go further, doesn't have to spend much time understanding it. The comments agains are not going to be executed, and they will be ignored  during execution phase. There are 2 ways for writing a JS comment:

 

a) A Single line comment: // This is a comment

b) A multi line comment:

/*

See picture above for that,

this is multi-line comment,

got it?

*/