Skip to content
This repository was archived by the owner on Jul 31, 2024. It is now read-only.
/ codehs Public archive

πŸ‘¨β€πŸ’» Code examples and answers for the CodeHS Computer Science Principles in JavaScript course

License

Notifications You must be signed in to change notification settings

Infinixius/codehs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

CodeHS Answers for Computer Science Principles in JavaScript

This repository contains the code examples and answers for the Computer Science Principles in JavaScript course on CodeHS. Leave a star 🌟 if you found this helpful!

Quiz answers and open-response answers are NOT included! Please keep in mind copy-pasting code directly from here is not the smartest thing to do. You should try to solve the problems yourself first, and only use this as a reference if you get stuck.

How does it work?

Two scripts, automate.js and browser.js are used to automate the process of copying code from CodeHS to this repository. Keep in mind Node.JS is required to run these!

browser.js is designed to be ran in the browser, and spits out a JSON object for use with automate.js. The easiest way to run the script is via a bookmarklet.

Make sure your editor size is set to be incredibly small. This is because code that isn't visible on screen will not be copied.

Image)

Run the bookmarklet and copy the JSON object that alerted.

Image

Run node automate.js. You'll be greeted with a prompt saying Enter output from bookmarklet:. Paste the JSON object you copied earlier and press enter. The files should be created automatically.

License

This repository is under the MIT License. This allows you to use, modify, and distribute the source as long as you include the license.

About

πŸ‘¨β€πŸ’» Code examples and answers for the CodeHS Computer Science Principles in JavaScript course

Resources

License

Stars

Watchers

Forks