chinchang/screenlog.js

String substitution for console.log

gnithin opened this issue · 0 comments

Typing console.log("%s has %d points", "Sam", 100);
outputs - %s has %d points Sam 100, (concatenation) on the page,
while the console outputs - Sam has 100 points
(It substitutes the values of %s & %d in the string).

Reference link