Skip to content

Syntax error in .each() example #226

@djekl

Description

@djekl

On the .each page - https://github.com/jquery/api.jquery.com/blob/master/entries/each.xml#L21

In the 1st jQuery example code you have;

$( "li" ).each(function( index ) {
    console.log( index + ": "" + $(this).text() );
});

for the console.log() line, you have one too many double quotes before $(this)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions