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 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, Stopwatch, Positive Numbers, Paragraph, Post Comment, Row Appender, Hobbies, Vectors, Username, Function Wrapper, Confirm, Double, Hide Button, Open Interface, Person, Truthy Expressions, Album, Product Rating, Products, Snapshot, Table of Names, Word Count, Log Parser, Date Transform, Cards, Scale Font Size, New Folder, Log Patch, Segment, Loading Bar, Array Search, Validation, Height, A Tag, Garden Plants, Reorder, Screen
Skills
JavaScript Arrays Closures Strings DOM manipulation Event handling Iteration Arithmetic Searching Exceptions TypeScript OOP Spread Language Serialization Sorting Styling Monkey patching HTML5 Recursion Bug fixing Classes ECMAScript 2015
Score Distribution
Loading...
Pricing For Premium Questions