Edited at

JavaScript関連



格納型


  • boolean

  • number

  • string

  • null

  • undefined

  • symbol


参照型


  • object

  • array

  • function


Scope


local ? global?

function f() {

a = 10;
}
f();
console.log(a);

You must use "var, const or let" when declare variables in function.