chinchang / chinchang/screenlog.js
String substitution for console.log
Open
- Dominant language
- JavaScript
- Stars
- 854
- Forks
- 71
- PR merge metrics
- No merged PRs in 30d
Description
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](https://developer.chrome.com/devtools/docs/console#string-substitution-and-formatting)
Contributor guide
Assessment
This issue has not been assessed yet.