This is a user interface for running a simulated bot. It runs, but it's buggy. Your task is to debug it, and present a solution!
assignment.js
Five documented bugs sit at the top of the file. Find them. Fix them. Tag each one with a comment:
// FIXED: issue #1
Minimum 2 fixed bugs. But more is better!
- Clone first: git clone https://github.com/veablicerBiz/node-test-assignment.git
- cd into cloned repo
- npm run start
OR
- npm install
- node assignment.js
Arrow keys navigate, Enter selects, Q quits.
- Can you read buggy code and spot the issues?
- Do you understand how Node handles keyboard input?
- Are your fixes minimal and clean?
- Touch only assignment.js
- Don't restructure the app
- Fix bugs, don't add features
- Submit the corrected file
30 to 60 minutes.
Future candidates on a position will be strictly evaluated on the quality of task done, good luck!