Start with a main function and make each problem a function. Call those functions from your main function.
Create a class Dog. Make sure it has the attributes name, breed, color, gender. Create a function that will print all attributes of the class. Create an object of Dog in your problem1 function and print all of it's attributes.
Create a function that has a loop that quits with the equal sign. If the user doesn't enter the equal sign, ask them to input another string.
In your main file create three Person objects. Change the weight and height of each one. Afterwards, print the BMI (body mass index) of each Person. If you don’t know how to calculate BMI, look at the code I provided for you.
Hint: BMI is (weight / (height * height)) x 703. Weight is in pounds and height is in inches.
Extra:Put the three person objects in an array and use a loop to print out their BMIs.
Create a class Product that represents a product sold online. A product has a name, price, and quantity.
The class should have changeProduct:
a) If changeProduct has one parameter, it can change the name of the product.
b) If changeProduct has two parameters it can change the name and price of the product.
c) If changeProduct has three parameters it can change the name, price, and quantity of the product.
Create an object of Product in your problem4 function and print all of it's attributes.
Use a standard JavaScript template. In your main function create the array below:
var squad = ["Bob", "John", "Bob", "Kenn", "Bob", "Kevin", "John", "Kevin"]; Print how many times each name is present in the array.