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

HW7 #291

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

HW7 #291

wants to merge 2 commits into from

Conversation

Hodr1337
Copy link
Contributor

No description provided.

@DrSmile444 DrSmile444 self-requested a review January 24, 2023 19:57
@DrSmile444 DrSmile444 self-assigned this Jan 24, 2023
let wheel2 = new Wheel (9.5, 23);
let wheel3 = new Wheel (9.5, 23);
let wheel4 = new Wheel (9.5, 23);
let wheelsArray = {wheel1,wheel2,wheel3,wheel4}
Copy link
Contributor

Choose a reason for hiding this comment

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

Please, use array instead of object

let wheelsArray = {wheel1,wheel2,wheel3,wheel4}


let lamborghiniUrus = new Car(V8,wheelsArray,"SUV",typicalSUV,"2200kg");
Copy link
Contributor

Choose a reason for hiding this comment

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

Also, it would be best not to use let here because you don't change the variables. I suggest you use const instead.

Please, review the whole code.

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