If you're reading this, it means that you have been selected for an interview take-home project. Congratulations on making it this far in the hiring process!
An interview take-home is a type of job interview where we provide you with a specific task to complete on your own time within a specified timeframe, and submit the results back to us. This will give you the opportunity to showcase your skills and abilities in a more practical and hands-on manner.
The take-home project is designed to assess your technical expertise, problem-solving skills, creativity, and attention to detail. The task can vary in complexity depending on the job requirements and industry.
Please read the instructions carefully and make sure you understand what is expected of you. We recommend that you use the provided resources to help you complete the task to the best of your ability.
We look forward to seeing your submission and wish you the best of luck!
- Install Node.js: Node.js is a JavaScript runtime that allows you to run JavaScript on the server side. You can download and install it from the official Node.js website: https://nodejs.org/
- Install Yarn: Yarn is a package manager for Node.js that allows you to easily manage dependencies and packages for your project. You can download and install it from the official Yarn website: https://classic.yarnpkg.com/en/docs/install/
npm install -g yarn
- Install project dependencies: Once you have Node.js and Yarn installed, navigate to the project directory in your terminal and run the following command to install all project dependencies:
yarn install
- Run the code: After the dependencies are installed, run the following command to start the project:
yarn run-code
Will get result:
Running compareTwoTimesCheckTheSecondTimeIsEarlier,
time-1: 2020-01-01 00:00:00, time-2: 2020-01-01 00:00:01 true
Running compareTwoTimesCheckTheSecondTimeIsEarlier,
time-1: 2020-01-01 00:00:01, time-2: 2020-01-01 00:00:00 false
Congratulations, you are now set up to run the project! If you have any issues or questions, please refer to the project documentation or feel free to contact the project maintainers.
For this interview take-home project, we would like you to fill in the functions listed in questions.ts. Take generateSixDigitRandomNumberString() as an example. This function should generate a random six-digit number and return it as a string.
When writing the question, keep the following considerations in mind:
Clarity: The question should be clear and concise. Make sure that the student understands what is expected of them and what they need to accomplish.
Robustness: The function should be able to handle unexpected inputs and edge cases. Consider what happens if the input is not a number, or if the function is called with no arguments.
Ductility: The function should be flexible and able to be used in a variety of contexts. Consider what happens if the function is called multiple times in a row or if it needs to be used in a larger application.
Here is an example of what the function should look like:
export const generateSixDigitRandomNumberString = (): string => {
const randomNumber = Math.floor(Math.random() * 900000) + 100000;
return `${randomNumber}`;
}
If you have any questions about the interview take-home project or if you run into any issues, please don't hesitate to contact us. We are happy to help and want to ensure that you have a positive experience.
You can reach us via email at [insert email address here]. We will do our best to respond to your inquiry as soon as possible.
Thank you for your interest in our company and for taking the time to complete this interview take-home project. We appreciate your effort and look forward to reviewing your submission.