TypeScript and JavaScript 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 TypeScript and JavaScript online test assesses candidates' knowledge of programming in the languages of the web: JavaScript and TypeScript.

It's an ideal test for pre-employment screening. A good web developer needs to be knowledgeable of the features and structures of JavaScript and the potential benefits that TypeScript offers in web page scalability and encapsulation.

This test requires candidates to develop solutions in JavaScript and answer multiple-choice questions regarding the features of the TypeScript compiler.

Recommended Job Roles
JavaScript Developer
TypeScript Developer
Web Front-End Developer
Sample Candidate Report

Sample Free Questions

Color Type

2min
  -  
Easy  
  -  
MCA

TypeScript Arrays OOP Public

The following code initializes three types representing the colors: red, green and blue.

type ColorType = [string, number, number, number];
let red: ColorType = ['Red', 1, 0, 0];
let green: [string, number, number, number] = ['Green', 0, 1, 0];
let blue = ['Blue', 0, 0, 1];

Select the statements that are correct.

(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.

Uppercase Types

3min
  -  
Easy  
  -  
MCA

TypeScript OOP Types Public

The following code initializes strings as three different types and attempts to make them uppercase. Which statements about the behavior of the typescript compiler are correct?

let stringType: string = "string type";
stringType.toUpperCase();

let anyType: any = "any type";
anyType.toUpper();
anyType.toUpperCase();

let objectType: Object = "object type";
objectType.toUpperCase();

(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, Person, Truthy Expressions, Album, Word Count, New Folder, Log Patch, Loading Bar, Garden Plants, 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, Post Comment, Cards, Reorder, Validation, Table of Names, Open Interface
Skills
JavaScript Arrays Closures Exceptions DOM manipulation Event handling TypeScript OOP Spread Language Strings Monkey patching HTML5 Arithmetic Iteration Attribute manipulation Dialog box Regex Objects Asynchronous calls Serialization XML JSON Sorting Content manipulation Styling Callback Bug fixing Classes ECMAScript 2015 Recursion Forms
Score Distribution
# of candidates
0-33%
34-66%
67-100%
Score
Pricing For Premium Questions