The problem

Create an class for a fortune cookie. When you create your object, you will fill the cookie with 7 fortunes in an array. Then in a link, call a function in the object to display a random function. The display should be within an h3 tag using getElementById().

Print PDF

Topics

23. Classes
25. Array

Languages

4. JavaScript