Cheers and happy coding .
Mmm, quĂ© buena idea. yo tambiĂ©n deberĂa realizar algĂşn proyecto para ponerme al dĂa con la sintaxis de ES6. Pero como en el trabajo no lo gastamos… pues eso
lol en realidad es dĂficil practicar la sintaxis de un lenguaje sin algĂşn incentivo. Con el primer ejercicio aprendĂ que existen los “template literals”, al parecer es una buena forma de explorar javascript .
Saludos
No habĂa oĂdo hablar nunca de template literals O.o
Yo tampoco, lo que me parece extraño porque se ven bastante interesantes:
The expressions in the place holders and the text between them get passed to a function. The default function just concatenates the parts into a single string. If there is an expression preceding the template literal (tag here), the template string is called “tagged template literal”. In that case, the tag expression (usually a function) gets called with the processed template literal, which you can then manipulate before outputting.
Cheers and happy coding