Hide
In this article
HackerRank's assessments for Front-end, Back-end, and Full-stack developer roles offer flexibility for solving project-type problems using either the HackerRank-provided VS Code IDE or a local, git-based IDE. For the best experience, we highly recommend using the HackerRank IDE.
Why Use the HackerRank IDE?
Using the HackerRank IDE provides several benefits:
- Access to Built-in Features: The HackerRank IDE includes tools like IntelliSense and other features tailored for coding assessments. These are designed to streamline the testing process by offering real-time feedback and code suggestions.
- No Setup Required: The environment is pre-configured, so you don’t need to worry about dependencies or local configurations.
- Seamless Integration: Your work is automatically saved, and submissions can be made without the hassle of managing local repositories.
Prerequisites for Project Tests
Review the Cookie Settings for HTML, CSS, JavaScript, and Projects Questions to ensure your environment is configured correctly.
Answering Project Assessments
- Start the Test: Access the assessment via the "Start Test" button in your email invitation.
- Read the Instructions: Carefully review the instructions and try a sample test to familiarize yourself with the platform.
- Choose Your IDE: We recommend using the HackerRank IDE for ease. If you prefer using your local environment, ensure you meet all the software requirements.
- Continue to Confirmation: Fill out the Confirmation Form with your details (name, email, years of experience).
- Environment Setup: HackerRank will automatically configure the environment. Once setup is complete, click Go To Test to begin.
- Answer the Questions: Click Solve to start answering role-based questions.
Using the HackerRank IDE
- The setup process starts automatically once the question loads. If you exit during this process, you may need to install dependencies manually.
- You can collapse the question pane to get more coding space within the IDE.
- Run Code: Use the Run button in the menu to execute your code.
- Test Cases: Click Run Tests to execute test cases against your code.
- Running and Debugging Test Cases: Click Run Tests to execute the test cases against your code. You will need to use the terminal to debug your code, where you can review the status, output, and error logs for each test case. For questions that support a UI-based interface, you can view an enhanced layout showing individual test cases, their pass/fail status, and error logs directly. You can still refer to the terminal for detailed debugging and additional insights.
- Preview the Application: You can preview your application by selecting Open Preview or clicking the Preview button in the top-right corner. Ensure pop-ups are allowed for real-time updates.
- Terminal Access: Access the terminal from the menu when needed.
- Avoid Modifying UI IDs: Do not alter the IDs or classes of existing UI elements, as they are essential for unit tests.
- Auto-Save and Logout: If the test time elapses, you will be logged out, and your last auto-saved code will be used for evaluation.
- Submit Code: Once satisfied with your solution, click Submit code. You can update submissions multiple times before the test ends.
Using a Local IDE
You can also use your preferred local IDE by selecting Local IDE in the assessment interface.
Setting Up Your Local Environment:
- Ensure Dependencies: Before beginning, confirm that your local environment has the correct programming languages and libraries.
- Clone the Git Repository: Copy the git repository link provided and use the git clone command to download the project locally.
- Track Commits: View and manage commits within the HackerRank interface. Every push automatically updates the interface.
- Run Tests: Ensure your code works as expected by clicking Run Tests.
- Submit Your Code: Submit your code via the Submit Test button. Multiple submissions are allowed, but only the code on the master branch will be evaluated.