It’s big brain time.

Member-only story

Getting a Perfect Score in Kahoot! With the Power of Node.js

Kevin Feng
11 min readJul 13, 2022

Ever wonder how that one that classmate of yours keeps getting a perfect score in your class’s Kahoot! games? Well, it certainly isn’t because of a good work ethic, natural intellect, or time spent studying. They’re obviously cheating. Today, I’m going to show you how to fight fire with fire and attain a perfect score in Kahoot! every single time by creating a JavaScript bot. Let’s start by getting familiar with some of the tools that we’ll be utilizing in this project.

Source

Node.js

Node.js is a popular backend runtime environment for JavaScript that runs on the V8 engine and enables JS to run outside of a web browser. Node.js is open-source and cross-platform and is often used for developing backend API services or command-line interfaces (CLIs) — which is exactly what we’re going to be doing today.

Ordinarily, JavaScript cannot be run without a web browser, which is why you’ll often see programming tutorials demonstrating basic functionalities of the language in the console of Google Chrome, for example. However, Node.js transforms JavaScript into more of a “traditional” programming language — one that runs free of a browser and in your computer’s terminal instead.

Source

npm

If you are familiar with Python, then you have undoubtedly utilized pip, or the Package Installer for Python. pip is connected to an online repository of Python packages called the Python Package Index and enables programmers to install and manage software packages for the serpentine language.

npm is essentially the pip of Node.js. It is the default package manager for Node.js, connecting programmers to the npm registry, a massive online database of JavaScript packages. When you install Node.js, you’ll gain access to this powerful package manager.

Now let’s start creating our Kahoot! bot.

1. Scraping the correct answers to a quiz

--

--

Kevin Feng
Kevin Feng

Written by Kevin Feng

Scholastic award-winning writer on a mission to transform how people think with language | Sharing insights on Stoicism, fitness, and discipline

Responses (2)

Write a response