1 Hour JavaScript

1 Hour JavaScript

Sharpen Your JavaScript Skills: Today's Practice Problems Inside [PS: 4]

"1 Hour JavaScript": Stay sharp and interview-ready with 1 hour of JavaScript practice problems each week.

Logan Randall Besecker's avatar
Logan Randall Besecker
Jul 01, 2024
∙ Paid

Welcome to today's issue of SoftwareEngineer.Careers "1 Hour JavaScript" Newsletter, where we help you stay sharp and interview-ready! Each issue will include a practice problem for both frontend and backend software engineers across different skill levels. Whether you're a junior, senior, or staff engineer, we have something for you. Let's get started!


Junior Frontend Engineers (Beginner)

State Management

Implement a counter component with React's useState hook.

Problem Description:

In this exercise, you will create a simple counter component using React's `useState` hook. The goal is to familiarize yourself with React hooks and managing component state. Your counter component should increment and decrement a count value when buttons are pressed.

Checklist:

[ ] Set up a basic React project using Create React App

[ ] Create a functional React component

[ ] Use the `useState` hook to manage the count state

[ ] Implement increment and decrement functionality

[ ] Display the current count value in the component


Junior Backend Engineers (Beginner)

Simple Middleware

Create a simple logging middleware for an Express application.

Problem Description:

In this exercise, you will create a simple logging middleware for an Express application. The middleware should log basic information about incoming requests, such as the method and URL, to the console. This task will help you understand how to create middleware and where to place it in your Express app.

Checklist:

[ ] Set up a basic Express API if you don't already have one

[ ] Create a logging middleware that logs request details

[ ] Apply the middleware to your Express app

[ ] Ensure the middleware logs information for every incoming request

[ ] Test your middleware by making sample requests to the server


Gain Free Access to the Senior Frontend Engineer (Intermediate) Practice Set as well as the Senior Backend Engineer (Intermediate) Practice Set at the following link: SoftwareEngineer.Careers/practice-problems/node-js/problem-set-4/

Or…

Gain Premium Authorized Access to the Senior and Staff Software Engineer practice by upgrading to a premium subscription

Keep reading with a 7-day free trial

Subscribe to 1 Hour JavaScript to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Logan Randall Besecker
Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture