JavaScript Masterclass - Zero to Job-Ready with Hands-On Projects - String Methods / 010

Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Hard
Quizizz Content
FREE Resource
Read more
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What method would you use to convert a string to all uppercase letters?
toTitleCase()
capitalize()
toLowerCase()
toUpperCase()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method returns the position of the first occurrence of a specified character in a string?
lastIndexOf()
indexOf()
charAt()
find()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the indexOf method return if the character is not found in the string?
undefined
null
0
-1
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If you want to replace all occurrences of a character in a string, which method should you use?
substitute()
replace()
replaceAll()
swap()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How does the replace method differ from replaceAll?
Both change the first occurrence
replace changes all occurrences, replaceAll changes the first
Both change all occurrences
replace changes the first occurrence, replaceAll changes all
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between the substring and slice methods?
substring includes the end index, slice does not
slice includes the end index, substring does not
Both include the end index
Neither includes the end index
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the slice method return if the start index is greater than the end index?
An empty string
The entire string
null
undefined
Create a free account and access millions of resources
Similar Resources on Wayground
8 questions
Call a function : String Methods

Interactive video
•
University
6 questions
The Front-End Web Developer Bootcamp - HTML, CSS, JS, and React - String Methods - Part 2

Interactive video
•
University
8 questions
HTML CSS and JavaScript for Beginners - A Web Design Course - JavaScript String Methods

Interactive video
•
University
8 questions
Core Java Programming Course- String Search Operations

Interactive video
•
University
8 questions
Java Programming for Complete Beginners - Java 16 - Step 03 - String class - Introduction and Exercise - Print Each Word

Interactive video
•
University
11 questions
The Front-End Web Developer Bootcamp - HTML, CSS, JS, and React - String Methods - Part 3

Interactive video
•
University
8 questions
Java Programming for Complete Beginners - Java 16 - Step 04 - String class - Exercise Solution and Some More Important M

Interactive video
•
University
11 questions
REST API Automation Testing from Scratch - REST Assured Java - Strings in Java

Interactive video
•
University
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade