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

fix: rus translation in #119 #812

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Rithor
Copy link

@Rithor Rithor commented Dec 23, 2024

In the English version:

  • B: Mara undefined Lydia Hallie ReferenceError
  • member.getLastName?.(): variable member is non-existent therefore a ReferenceError gets thrown!

@oshliaer
Copy link
Contributor

oshliaer commented Jan 3, 2025

You're right. The typo lived from c85b88b

{
    const person = {
        firstName: 'Lydia',
        lastName: 'Hallie',
        pet: {
            name: 'Mara',
            breed: 'Dutch Tulip Hound'
        },
        getFullName() {
            return `${this.firstName} ${this.lastName}`;
        }
    };

    console.log(person.pet?.name);
    console.log(person.pet?.family?.name);
    console.log(person.getFullName?.());
    console.log(member.getLastName?.());
}
test:14 Mara
10:19:24.972 test:15 undefined
10:19:24.972 test:16 Lydia Hallie
10:19:24.987 test:17 Uncaught ReferenceError: member is not defined at test:17:17

Thanks for catching

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

Successfully merging this pull request may close these issues.

2 participants