Skip to content

String substitution for console.log #11

@gnithin

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

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