basis of javascript

Javascript and Java are alike each other, including control statements and String object.

All control statements such as  if, for, while, swith in java also emerge in javascript . 

 

Code Example:

 

 

 

 Javascript is a weaky typed language that implies variables maybe equal even their types are not same.
code  example:

 

type convention
  parseInt/parseFloat.

constant
  const PI=3.14

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章