Skip to content

Instantly share code, notes, and snippets.

@davidjsalazarmoreno
Last active May 25, 2019 23:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidjsalazarmoreno/5145f348712fc3b47363c0ddba31b780 to your computer and use it in GitHub Desktop.
Save davidjsalazarmoreno/5145f348712fc3b47363c0ddba31b780 to your computer and use it in GitHub Desktop.
const bar = 'bar'
let foo = 'baz'
const bazzz = 'baaarrr',
fooos = 'baaam'
function hello(world) {
let greeting = 'Hello '
if (world)
greeting += world
else
greeting += 'world'
return greeting
}
// Esto es equivalente a escribir
const bar = 'bar';
let foo = 'baz';
const bazzz = 'baaarrr';
const fooos = 'baaam';
function hello(world) {
let greeting = 'Hello ';
if (world) {
greeting += world;
}
else {
greeting += 'world';
}
return greeting;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment