Jeff downloaded the Zip file, extracting its contents, and then opened the project folder. Inside were typical web development files.
Like index.html, style.css, script.js, and a README.txt, along with a screenshot showing a browser console error.
He then opened Visual Studio Code, navigated to the project directory, and began the setup.
...
Bash
npm install
npm start
...
The app loaded in the browser. It was a simple contact form with fields for Name, Email, and Message. The design was clean, but there were a few noticeable bugs.
Jeff filled in a test message and clicked Submit.
Click!
The page refreshed after waiting for a while for the confirmation. No message was sent to the server.
He opened the browser's DevTools console, and sure enough, an error glared back. Making him glare as well.
[Uncaught TypeError: Cannot read properties of undefined (reading 'value')]
Jeff squinted at the screen, his eyes narrowing on line 27 of script.js. The code was trying to access form elements before the DOM had fully loaded.
He clicked over to the JavaScript file to confirm. Sure enough, the event listener had been declared outside the DOMContentLoaded block, which meant the script was trying to interact with elements that weren't available yet.
"Beginner's trap," he muttered to himself.
With his god-tier programming skill, he was literally not a beginner at this moment.
This was an easy fix for someone like him, a god of programming. Without wasting time, he got to work.
He wrapped the existing code inside a document.addEventListener('DOMContentLoaded', ...) block to ensure the script only ran after the entire page had finished loading.
Next, he noticed another common mistake. The form was missing event.preventDefault(), which meant the browser was refreshing the page before any JavaScript could execute properly.
"This is why your message isn't submitting, my guy," he mused inwardly, already rewriting the function with calm look.
He then added the following line.
...
JavaScript
form.addEventListener('submit', function(e) {
e.preventDefault();
// ...rest of code
});
...
(Authors Note: JavaScript is a scripting or programming language that enables you to create dynamically updating content, control multimedia, animate images, and much more on web pages. It is one of the core technologies of the web, alongside HTML and CSS)
Lastly, the fetch() function was present, but it lacked proper headers and didn't include JSON.stringify().
This meant that even if the request reached the server, it would likely cause an error or be rejected entirely.
So, he rewrote the submission logic properly. He added the necessary headers to specify the content type as JSON and wrapped the form data in JSON.stringify() to ensure it was correctly formatted before being sent to the server.
With a few precise keystrokes, the broken logic was replaced with clean, functional code.
...
JavaScript
fetch('/contact', {
method: 'POST',
headers: {...rest of code
...
"There was no validation, no error handling. this guy must be new in programming," Jeff thought as he saved the file.
He tested the form again filled it out, clicked submit. This time, no page reload. The alert popped up.
"Message sent!"
He checked the terminal log and saw the data appeared perfectly formatted, just as expected.
Since he had some time to spare, he decided to go the extra mile. He refactored the code, fixed the inconsistencies, and made sure every line was clean, readable, and precise.
By the time he was done, the code looked so polished that even senior developers would be shocked by its clarity and structure.
After all, readability is king.
Code isn't written just for machines, it's written for other humans too.
If a senior developer opens your file and can instantly understand the flow, logic, and purpose, it leaves a lasting impression.
In the developer world, writing clean, readable, and well-structured code is a huge deal. In fact, it's often more impressive than writing overly complicated, clever code that no one else can understand.
But Jeff does not know this, the reason why he does this is because he felt itchy if he does not fix it.
Razon: Hey, I fixed all the issues. I wrapped your script in a DOMContentLoaded event, added preventDefault(), and rewrote your fetch call with proper headers and JSON formatting. I also added comments to explain the changes so you can learn from them.
Let me know if you want help upgrading the design or adding form validation!
Jeff then leaned back as he lie down on the bed, it only took him like 5 minutes. The lines of codes are more than a hundred but he did it in a minute.
He had already exceeded the ability of artificial intelligence back in his own world.
The client, after finishing boiling some water and making a cup of coffee, returned to his desk.
When he sat down, he noticed an unread message that had arrived about five minutes earlier. Placing the cup on the table, he opened it.
What he saw left him stunned.
As he scrolled up and reread the conversation, he realized that only five minutes had passed since he assigned the task, and it was already complete.
"Is this guy mentraly retarded! if you are trying to scam me, then you failed. He should at least make it more believable," he muttered wondering if this guy had some loose screws..
But still to check it since their was already a zip file attached in their. He downloaded it and run it on his own pc.
Seeing the program made him froze and stunned, it looks so different from his. Like everything was not the same anymore.
Feeling doubtful, he ran the code to check it himself. At first glance, the appearance of the form was still the same, but when he typed a message and clicked send, it worked perfectly.
"Ey, it actually works. He even added comments to help me understand," he said in surprise.
As he continued to read the codes, he was even more surprised why everything is so arranged.
"Damn, is this guy a master? Then I'm in luck. Failing the first semester is not going to happen after all," he added, feeling ecstatic.
Client: Thanks I just checked it and its really good, where should I send the payment?
Seeing everything worked perfectly, Jeff quickly sent over his PayPal account. The client who was now convinced, responded by sending the payment.
Moments later, a notification popped up on Jeff's screen. He then checked it immediately.
[You've received $15.00 USD from Ginago@gmail.com.]
Razon: Pleasure doing business with you.
Client: Me as well.
With that Jeff then started to look for more work in the website. After scrolling he found another one.
Work: Create a Basic Login System (Front + Back)
Payment: $20
Tools: HTML/CSS + Python Flask or PHP
Task: "Make a login/signup page with a working password system."
He then messaged another client, hoping to get more work. However, this client asked for a portfolio.
Jeff tried the same approach as before, offering to work first and get paid only if successful, but it didn't work this time.
It was only when he showed the finished work from his first client that the new client finally agreed to give him a chance.
Client: Hey! I need a basic login/signup page for my app. It doesn't need to be fancy, just functional username and password system, that's it. Can you finish it in a few hours?
Razon: Of course.
For the client, a few hours was more than enough. For him? He could finish something like this in just minutes, so he got straight to work.
He opened Visual Studio Code, created a folder named simple_auth, and began building the project.
This folder would contain all the necessary files, including the webpages for the user interface, the styling to make it look clean, and the backend logic written in Python.
Then, he opened his terminal and started running the initial setup commands.
...
Bash
pip install flask
...
Flask is a Python web framework. It allows Jeff to create web pages and control what happens behind the scenes when someone clicks a button or submits a form.
Next, he moved on to the frontend. He began by creating two HTML files. One for the login page and one for the signup page.
...
Html