RxJS Online Test

TestDome skill assessments are used by more than 11,000 companies and 1,030,000 test takers.

For Jobseekers

Practice your skills and earn a certificate of achievement when you score in the top 25%.

Take a Practice Test

For Companies

Test candidates with real-world problems and interview the best ones.

Sign Up to Offer this Test

About the test

The RxJS online test assesses knowledge of reactive programming concepts with RxJS and the various prebuilt operators that come with the library.

The assessment includes work-sample tasks such as:

  • Using RxJS Observables to manage asynchronously created data.
  • Working with RxJS Subjects for data broadcasting.
  • Processing streams of data with Pipeable Operators.

A good RxJS developer should be able to use reactive programming and the various prebuilt operators that come with the RxJS library to create maintainable and accessible web user interfaces.

Sample public questions

Easy
7 min
mca
Public
RxJS
Creation Operator
Pipeable Operator
RxJS Observable
RxJS Subject

Consider the following RxJS code for testing how a given damage Subject affects the health of a Player object in a game:

class Player {
  name: string;
  health: number;
  damageSubscription: Subscription;

  constructor(name, damageSubject) {
    this.name = name;
    this.health = 100;
    this.damageSubscription = damageSubject.subscribe((damage) => {
      this.health -= damage;
      console.log(this.name + " was hurt for " + damage + " damage");
    });
  }

  takeCover() {
    this.damageSubscription.unsubscribe();
    interval(1000)
      .pipe(
        takeWhile(() => this.health < 100),
        map(() => 10),
        tap(() => console.log(this.name + " is healing, current health is " + this.health))
      )
      .subscribe((heal) => {
        this.health += heal;
      });
  }
}
const explosion = new Subject();
const john = new Player("John", explosion);
const sam = new Player("Sam", explosion);

explosion.next(10);
john.takeCover();
explosion.next(20);

const paul = new Player("Paul", explosion);
sam.takeCover();
explosion.next(20);
paul.takeCover();

What options will be true after the above code is run?

Easy
5 min
fill
Public
RxJS
RxJS Subject

Consider the following RxJS code for pushing and logging weather data:

const weatherSubject = new _______________({temperature: 0 , rainChance: 0});
const sendWeatherData = (weatherData) => {
  weatherSubject.____(weatherData);
};

sendWeatherData({temperature: 35.5 , rainChance: 20});
sendWeatherData({temperature: 34 , rainChance: 25});

weatherSubject.subscribe((x) => {
  console.log("Current Temperature: " +  x.temperature);
});

sendWeatherData({temperature: 28 , rainChance: 50});

weatherSubject.subscribe((x) => {
  console.log("Chance of rain: " + x.rainChance);
});

sendWeatherData({temperature: 25 , rainChance: 90});

Fill in the blanks above so that the following output is produced after running it:

Current Temperature: 34
Current Temperature: 28
Chance of rain: 50
Current Temperature: 25
Chance of rain: 90

For jobseekers: get certified

Earn a free certificate by achieving top 25% on the RxJS test with public questions.

Take a Certification Test

Sample silver certificate

Sunshine Caprio

Java and SQL
TestDome
Certificate
TestDome logo icon

For companies: premium questions

Buy TestDome to access premium questions that can't be practiced.
Get money back if you find any premium question answered online.

Sign Up to Offer this Test

4 more premium RxJS questions

Awesome Tracking, Fresh Food, Log Post Data, Dictionary Definition.

Skills and topics tested

  • RxJS
  • Bug Fixing
  • Pipeable Operator
  • RxJS Observable
  • RxJS Subject
  • Creation Operator

For job roles

  • RxJS Developer

Sample candidate report

What others say

Decorative quote

Simple, straight-forward technical testing

TestDome is simple, provides a reasonable (though not extensive) battery of tests to choose from, and doesn't take the candidate an inordinate amount of time. It also simulates working pressure with the time limits.

Jan Opperman, Grindrod Bank

Product reviews

G2 - Crowd Badge
G2 - High Performer (2022)
Capterra - 4.5 Stars
Capterra - Shortlist (2023)

Used by

Solve all your skill testing needs

150+ Pre-made tests

From web development and database administration to project management and customer support. See all pre-made tests.

90+ skills

From JavaScript and SQL to English and customer support. See all questions to filter by skill.

Multi-skills Test

Mix questions for different skills or even custom questions in one test. See an example.

How TestDome works

1

Choose a pre-made test
or create a custom test

2

Invite candidates via
email, URL, or your ATS

3

Candidates take
a test remotely

4

Sort candidates and
get individual reports

Want to know more?

Related RxJS Tests: