This website is a demonstration of what I have learned so far regarding constructing and manipulating objects in JavaScript. The functionality of the website is intended to calculate the price of a movie ticket based on factors such as the movie title, time of day for the movie showing, and age of the purchaser. While rudimentary, it shows the framework we have developed for developing more complex programs using object-oriented programming.
- HTML
- JavaScript
- jQuery
- Markdown
- Git Bash
- Google Chrome
- Microsoft Windows 10
- Visual Studio Code
- Download a web browser, such as Apple Safari, Google Chrome, Microsoft Edge, Mozilla Firefox, or Yandex.
- Navigate to https://github.com/taylorsomers/movie-tickets.
- Click the green "Clone or download" button at the right of the screen.
- Select "Download ZIP."
- Use a file extractor or unzip program (such as PeaZip, Unzipper, WinZip, Zipware, or 7-ZIP) to extract the ZIP files onto your computer.
- Open the directory containing the extracted files.
- Double-click the "index.html" file to run the program through your web browser.
Program Behavior | Example Behavior | Example Output |
---|---|---|
Program will create an object called "ticket". | "ticket" | "Ticket {}" |
Program will store multiple price-influencing factors in the object "ticket". | "ticket" | "Ticket {movieName: undefined, movieTime: undefined, age: undefined}" |
Program will display a price for a ticket based on an arithmetical calculation involving the ticket properties. |
- Aside from being unfinished to this point, no known bugs at this time. If any are discovered, please feel free to reach out and let me know. If you would like to contribute any fixes or improvements, please do!
- Taylor Somers
This website is licensed under the GNU General Public License GPLv3. (C) 2020 Taylor Somers. All rights reserved.