1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

code academy : js復習 ③

Last updated at Posted at 2018-05-06

topics
constant variabele
let variable
undefined

##const
値が変えられない変数

const name = "";
console.log(name);
//output:苔

##let
値の変更が可能

let color = "";
console.log(color);
//output:緑

##undefined
値の与えられていない変数に初期値として割り当てられる値

let whatIsThat;
//値はundefined

let a;
let b =undefined;
let c =123;
c=undefined;
//a,b,cの値は全てundefined
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?