Skip to content

Commit 20d970a

Browse files
committed
WIP
1 parent 2c0d0db commit 20d970a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎assignments/prototypes.js‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
constructor functions, methods, prototypes and the `this` keyword.
55
Here's an example of an exercise:
66
7-
EXERCISE 0:
7+
TASK 0:
88
99
- Build an Airplane constructor that takes a name.
1010
- Give airplanes the ability to take off and land.
@@ -37,7 +37,7 @@
3737

3838
/*
3939
40-
EXERCISE 1
40+
TASK 1
4141
4242
- Build a Person Constructor that takes name and age.
4343
- Give persons the ability to greet by returning a string stating name and age.
@@ -46,7 +46,7 @@
4646
- Give persons the ability to poop.
4747
- When pooping, the stomach should empty.
4848
49-
EXERCISE 2
49+
TASK 2
5050
5151
- Build a Car constructor that takes model name and make.
5252
- Give cars the ability to drive a distance.
@@ -56,14 +56,14 @@
5656
- Give cars the ability to be repaired.
5757
- A repaired car can be driven again.
5858
59-
EXERCISE 3
59+
TASK 3
6060
6161
- Build a Baby constructor that subclasses the Person built earlier.
6262
- Babies of course inherit the ability to greet, which can be strange.
6363
- Babies should have the ability to play, which persons don't.
6464
- By playing, a string is returned with some text of your choosing.
6565
66-
EXERCISE 4
66+
TASK 4
6767
6868
Use your imagination and come up with constructors that allow to build objects
6969
With amazing and original capabilities. Build 3 small ones, or a very

0 commit comments

Comments
 (0)