Skip to content

Conversation

@anosidium
Copy link

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

I answered all the questions in the .js and .md files

Questions

According to the console in the Web Inspector (Safari) or JavaScript Console (Chrome), Number and String and other types are "function" which confuses me because I expected them to be classified as Object.

In Swift programming language, String, Int, Double, etc. are struct type and not function.

Why are functions that belong to an Object are called function? Why not called method? That's how it is in Swift. Functions are freestanding and belong to no objects, struct, etc.

@anosidium anosidium added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant