FAQ: Introduction to JavaScript - Review

This community-built FAQ covers the “Review” exercise from the lesson "Introduction to JavaScript ".

Paths and Courses
This exercise can be found in the following Codecademy content:

Web Development

Introduction To JavaScript

FAQs on the exercise Review

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply (reply) below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

This review talks about properties and methods of objects. On the surface (judging by how they look in the code), these look very much alike. the only difference I can spot is that a property like .length lacks the parantheses that a method like .toUpperCase() has.
What’s the exact difference between properties of an object and its methods?
Is there one on a technical level (the computer does different things with either) or is it a rather “human” distinction (only we can tell the difference, the computer can’t)?

I was asking myself the same thing yesterday. I found a post on a website that made me understand

" Think of an object as an object in real life (such as a bicycle). A method is something you can do with the bike (pedal), or something you can do to the bike (re-inflate tire). A property is something about the bike: how many wheels it has (wheels) or its height (height).

Object: Bicycle Properties:

** wheels*
** height*
** price*
** radius of wheel *

** repair*
** pedal*

Hope this helps."-ammonquackenbush



What is an instance of a datatype? What is meant by instance?

In the review page it reads

  • Objects, including instances of data types, can have properties, stored information. The properties are denoted with a . after the name of the object, for example: 'Hello'.length .
  • Objects, including instances of data types, can have methods which perform actions. Methods are called by appending the object or instance with a period, the method name, and parentheses. For example: 'hello'.toUpperCase() .

A property is like a noun.
A method is like a verb.

A method is a function…but it’s a function defined within an object. As opposed to a function made “outside” of that object.

When you see something like: shoes.length = 0
The assignment operator (=) is a good indicator it’s a property.

When you see function() {}. or () => {}
that’s a sign it’s a function and if it’s inside of an object, it’s a method.

1 Like

i’m doing the webdevelopment course and want to redo the first java lesson, just to understand it better. is there a way to only reset this lesson? as far as i can see the only option offered is to start from scratch alltogehter… thx for any tip.

I came here with the same question. Do you know the answer now?

How many data types are there in JavaScript?

The review says there are seven, but in another portion of Codecademy, it says that there are eight (https://www.codecademy.com/resources/docs/javascript/data-types?page_ref=catalog).


1 Like

@ricardomilan71167004 this is a great explanation, thx for linking it here!

This was so helpful thank you!