Saturday, July 29, 2023

What is different by var, let, const

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


0 comments:

Post a Comment