Skip to content

Conversation

Namnika
Copy link

@Namnika Namnika commented Jul 19, 2023

I found one typo in the topic optional chaining.

snippet:

let userAdmin = {
  admin() {
    alert("I am admin");
  }
};

In the below phrase:

Here, in both lines we first use the dot (userAdmin.admin) to get the admin property, because we assume that the userAdmin object exists, so it's safe read from it.

user should be userAdmin cause the obj's name is userAdmin not user.

PS: Thank you for these great docs! A lot of information are well cleared.

Closes: #3499

@CLAassistant
Copy link

CLAassistant commented Jul 19, 2023

CLA assistant check
All committers have signed the CLA.

@javascript-translate-bot javascript-translate-bot added the needs +1 One more review needed label Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs +1 One more review needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

change user to userAdmin

5 participants