Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String substitution for console.log #11

Open
gnithin opened this issue Dec 2, 2015 · 0 comments
Open

String substitution for console.log #11

gnithin opened this issue Dec 2, 2015 · 0 comments

Comments

@gnithin
Copy link
Contributor

gnithin commented Dec 2, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant