JavaScript and Node.js Online Test

TestDome skill assessments are used by more than 6,000 companies and 450,000 individual test takers.

Jobseekers: Get a Certificate

Take a Practice Test

Companies: Try First, Pay Later

Sign Up To Use This Test

The JavaScript and Node.js online test assesses candidates' knowledge of JavaScript language and specific Node.js features.

It's an ideal test for pre-employment screening. A good Node.js developer needs to be able not only to solve problems using Node.js but also to be familiar with the Node.js ecosystem.

This online test requires candidates to solve coding problems in JavaScript and Node.js.

Recommended Job Roles
Back-End Developer
JavaScript Developer
Node.js Developer
Sample Candidate Report

Sample Free Questions

Config

3min
  -  
Easy  
  -  
MCA

Node.js NPM Public

Consider the following package.json for a Node.js application:

{
  "name": "skill-measure-app",
  "private": true,
  "version": "1.0.0",
  "main": "lib/main.js",
  "scripts": {
    "build": "npm run cleanup & npm run test & npm run publish",
    "cleanup": "rm -fr ./lib",
    "test": "jest",
    "publish": "npm publish lib"
  },
  "dependencies": {
     "jest": "^23.0.1",
     "custom-package": "file:../custom-package"
  }
}

Select all the correct statements.

(Select all acceptable answers.)

Ensure

3min
  -  
Easy  
  -  
CODE

JavaScript Error handling Language Public

Implement the ensure function so that it throws an error if called without arguments or the argument is undefined. Otherwise it should return the given value.

Http Server

5min
  -  
Easy  
  -  
MCA

Node.js Standard library Public

A company hosts its website and a product API on same server using the code below:

let http = require('http');

let commonResponse = function(response){
  response.writeHead(200, { "Content-Type": "text/html" });
  response.write("Request Complete");
}

let handleApi = function(req, res){
  if(req.method == 'POST'){
    commonResponse(res);
    res.end();
  }
}

let handleWeb = function(req, res){
  commonResponse(res)
  res.end();
}

http.createServer(handleApi).listen(4513);
http.createServer(handleWeb).listen(4514);

Select all the correct answers.

(Select all acceptable answers.)

Use Free Questions On a Trial Plan

Premium Questions

The premium question library contains our unique, hand-crafted questions. We offer a refund if you find any of them answered online.

Questions
Filter, Positive Numbers, Function Wrapper, Double, Truthy Expressions, Word Count, New Folder, Log Patch, Loading Bar, Fahrenheit Converter, Shopping Cart, Segment, Hobbies, A Tag, Confirm, Date Transform, Height, Hide Button, Log Parser, Paragraph, Product Rating, Products, Row Appender, Scale Font Size, Snapshot, Username, Vectors, Timer, Screen, Array Search, File Exists, Stream Transform, Run Sequentially, Retry Request, Weather Data, Post Comment, Cards, Reorder, Validation, Table of Names
Skills
JavaScript Arrays Closures Exceptions DOM manipulation Event handling Language Strings Monkey patching HTML5 Node.js Modules Events Arithmetic Iteration Attribute manipulation Dialog box Regex Objects Asynchronous calls Serialization XML JSON Sorting Content manipulation Styling Callback Bug fixing Classes ECMAScript 2015 Recursion Stream Async-await Asynchronous programming Promise Forms
Score Distribution
# of candidates
0-33%
34-66%
67-100%
Score
Pricing For Premium Questions