var
1. can declare value 2nd time
2. can assign value 2nd time
let
1. can't redeclare value 2nd time
2. can reassign value 2nd time
const
1. can't redeclare value 2nd time
2. can't reassign value 2nd time
Home » javascipt » What is different by var, let, const
0 comments:
Post a Comment