Skip to content

Instantly share code, notes, and snippets.

@Ifmr24
Last active September 17, 2018 21:51
Show Gist options
  • Save Ifmr24/0bbafd62e8cf12a948686fd66fcd6080 to your computer and use it in GitHub Desktop.
Save Ifmr24/0bbafd62e8cf12a948686fd66fcd6080 to your computer and use it in GitHub Desktop.
JS Variable VAR / CambiarValor
// 1 - VARIABLES.
var pais = 'Chile'; // String
var continente = 'Latino America'; // String
var antiguedad = 2018; // Entero
var pais_y_continente = pais + ' ' + continente // Cadena
// 2 - CAMBIAR VALOR A VARIABLE A NIVEL GLOBAL // EL VALOR DE pais_y_continente NO SE CAMBIARA.
pais = 'Mexico';
continente = 'Latino America';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment