DEV Community

Discussion on: Stop using default console.log, check this instead

Collapse
 
rubenwap profile image
Ruben Sanchez

In the first example, my preferred method is normally the template string. I have trouble seeing the advantage of the % operator compared to concatenating the variables. Other than that, this article was useful and discovered me the dir and group methods!

Collapse
 
guilhermetoti profile image
Guilherme Toti

Yeah, I do not see a lot of advantages using % operator either, but I bring it just as informative content, it's a "good to know" thing...
Thanks! yesss, dir an group can be very helpful!

Collapse
 
willydee profile image
Willy Schott

The % syntax is for seasoned programmers who started with C and are now bald and wrinkly. printf still ringing a bell? ðŸ‘Đ🏞‍ðŸĶē

Thread Thread
 
guilhermetoti profile image
Guilherme Toti

ahahaha