Skip to content

NoroffFEU/programming-foundations-ca-WeronikaMartinsen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Programming Foundations CA

Required Properties

This object must contain well-named properties that describe your chosen item.

The item must have at least one property of each of the following types:

String Number Boolean Array Function

TESLA

I decided to describe a Tesla as my object. The item has following properties:

  • Brand (String), A string property representing the car's make, which is set to "Tesla".
  • Model (String), A string property representing the car's model, which is set to "Model 3".
  • Year (Number), A number property representing the year the car was manufactured, which is set to 2022.
  • Color (String), A string property representing the car's color, which is set to "White".
  • Milage (Number), A number property representing the car's mileage, which is set to 10,000.
  • isElectric (Boolean), A boolean property representing whether the car is electric, which is set to true.
  • On (Boolean), A boolean property representing whether the engine is on, which is set to true.
  • Features (Array), An array property containing various features of the car, such as Autopilot, full self-driving capability, and a premium interior.
  • StartEngine (Function), A function property that represents the action of starting the car's engine. It logs a message to the console indicating that the engine has started.
  • StopEngine (Function), A function property that represents the action of stopping the car's engine. It logs a message to the console indicating that the engine has stopped.

References:

About

programming-foundations-ca-WeronikaMartinsen created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published