Skip to content

String substitution for console.log #11

Description

@gnithin

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions