JavaScript Mastery from Zero to Hero - Prepare for Coding Interviews - Exercise - Star Power with RegEx in JavaScript

JavaScript Mastery from Zero to Hero - Prepare for Coding Interviews - Exercise - Star Power with RegEx in JavaScript

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial introduces an exercise involving regular expressions in JavaScript for a website called Star Power. The task is to design an algorithm that replaces groupings of uppercase and lowercase letters with spaces and an asterisk, while ensuring the output is in lowercase. The tutorial provides an example, detailed instructions, and encourages sharing solutions on Discord. The video concludes with a prompt to share the solution and a preview of the next video.

Read more

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main task in the Star Power challenge?

To count the number of stars in a given text.

To create a website for star enthusiasts.

To convert all text to uppercase.

To design an algorithm that replaces groupings of letters with spaces and an asterisk.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What should the algorithm do with spaces in the original string?

Replace spaces with an asterisk.

Remove all spaces.

Convert spaces to underscores.

Leave spaces unchanged.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the expected output format of the new string?

Original case of the input string.

All lowercase letters.

Mixed case letters.

All uppercase letters.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the name of the function to be written for this challenge?

starPowerAlgo

powerStarAlgo

starPowerFunction

starAlgo

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Where should you share your solution once completed?

Via email to the instructor.

In a GitHub repository.

On the Discord channel.

On a personal blog.