Skip to content

Why gsub is not used? #64

@justinemar

Description

@justinemar

For this question
Replace the "l" in the following string with "m":

word = "lace"

we could do word.gsub("l", "m")

instead

word[0] = "m"
puts word

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