Skip to content

Instantly share code, notes, and snippets.

@kutyel
Created August 2, 2019 10:35
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 kutyel/f080f2763a931e2690611e599712dfe1 to your computer and use it in GitHub Desktop.
Save kutyel/f080f2763a931e2690611e599712dfe1 to your computer and use it in GitHub Desktop.
function sum(a, b) {
// Aquí puede haber comentarios importantes...
// ...sobre todo para gente que hace librerías, etc...
return a + b;
}
// En la primera versión de la especificación...
sum.toString() // > "function sum() { return a + b }"
// ...con la revisión, todo se conserva!! 💪🏼
sum.toString() // > (ver abajo)
/*
"function sum(a, b) {
// Aquí puede haber comentarios importantes...
// ...sobre todo para gente que hace librerías, etc...
return a + b;
}"
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment