What's an equivalent for C macros in JS? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

What's an equivalent for C macros in JS?

so i c with `#define r return` u can use r instead of `return` across ur code so how can we do this in js? btw u can for example make an alias for `console.log()` as follows `const lg = val => console.log(val)`

20th Sep 2021, 8:24 PM
Aybak3k
Aybak3k - avatar
1 Resposta
0
but some of what u mentioned isn't for js like sass no?
21st Sep 2021, 3:37 PM
Aybak3k
Aybak3k - avatar