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

JS2 Part 3 syntax error corrected #2205

Merged
merged 4 commits into from
Aug 19, 2022
Merged

Conversation

pauly48
Copy link
Contributor

@pauly48 pauly48 commented Aug 18, 2022

Closes #2187

This correction removes syntax error within an array with parenthesis and also adds semi-colon between prototype function declaration and calling function statements.

image

@@ -1406,7 +1406,8 @@ When the function is running, this refers to the object that comes before ..

Array.prototype.last = function () {
  return this[this.length - 1]
-}[(1, 2, 3)].last() // When the last function is run, 'this' refers to [1,2,3]
+};

@vercel
Copy link

vercel bot commented Aug 18, 2022

@pauly48 is attempting to deploy a commit to the c0d3-prod Team on Vercel.

A member of the Team first needs to authorize it.

@pauly48 pauly48 mentioned this pull request Aug 18, 2022
@codecov
Copy link

codecov bot commented Aug 18, 2022

Codecov Report

Merging #2205 (7905844) into master (08424af) will not change coverage.
The diff coverage is n/a.

❗ Current head 7905844 differs from pull request most recent head 0bb9a79. Consider uploading reports for the commit 0bb9a79 to get more accurate results

Impacted file tree graph

@@            Coverage Diff            @@
##            master     #2205   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          171       171           
  Lines         2950      2950           
  Branches       796       796           
=========================================
  Hits          2950      2950           

@@ -1406,7 +1406,8 @@ When the function is running, `this` refers to the object that comes before `.`.
```jsx
Array.prototype.last = function () {
return this[this.length - 1]
}[(1, 2, 3)].last() // When the last function is run, 'this' refers to [1,2,3]
};
Copy link
Collaborator

@anthonykhoa anthonykhoa Aug 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove the semicolon at the end on this line as well as line 1419? I just searched through the file, I don't see any javascript code using the semicolon, so it shouldn't be here either

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Anthony, I posted the reason for semicolon in the Discord bugs & feedback section with the screenshots.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

@anthonykhoa anthonykhoa Aug 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. Can you please put this in the PR description? And if there was any other bugs you solved with this code change, can you also include it in the PR description too

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. Can you please put this in the PR description? And if there was any other bugs you solved with this code change, can you also include it in the PR description too

Anthony, description has been updated as requested. Thank you :)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pauly48 approved, but I think you might have forgotten to save the updates you made to the PR description

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh i see you included the image. Please include the explanation as well

@pauly48
Copy link
Contributor Author

pauly48 commented Aug 19, 2022 via email

@vercel
Copy link

vercel bot commented Aug 19, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
c0d3-app ✅ Ready (Inspect) Visit Preview Aug 19, 2022 at 11:24PM (UTC)

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.

JS2 Page3 syntax error
4 participants