JavaScript and Node.js Online Test

TestDome skill assessments are used by more than 5,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 answer multiple-choice and fill in the blanks questions about Node.js and to solve coding problems in JavaScript.

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, Table of Names, Word Count, Cards, New Folder, Log Patch, Loading Bar, Array Search, Read Files, Fahrenheit Converter, Reorder, Shopping Cart, Weather Data, Segment, Hobbies, A Tag, Confirm, Date Transform, Height, Hide Button, Log Parser, Paragraph, Post Comment, Product Rating, Products, Row Appender, Scale Font Size, Snapshot, Username, Vectors, Validation, Timer, Screen
Skills
JavaScript Arrays Closures Exceptions DOM manipulation Event handling Language Strings Monkey patching HTML5 Recursion Node.js Asynchronous programming Modules Events Arithmetic Iteration Attribute manipulation Dialog box Regex Objects Asynchronous calls Serialization XML Content manipulation JSON Sorting Styling Forms Callback Bug fixing Classes ECMAScript 2015
Score Distribution
Loading...
Pricing For Premium Questions