Last active
July 1, 2020 08:23
-
-
Save agustinpfs/06b8563a55ab5408ad7b08892ba62ee4 to your computer and use it in GitHub Desktop.
Javascript básico. Reasignación de variables.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const a = 7; | |
a = 8; // reasignación | |
console.log(a);// TypeError: Assignment to constant variable. | |
let b = 7; // mismo resultado para var a = 7 | |
b = 9; | |
console.log(b); // 9 var y let pueden ser reasignadas |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment