#6 Javascript Strings | Javascript Hindi Course For Beginners ( 2023 )

Basics of string

String → A string is a sequence of characters used to represent text. Strings are defined using quotes (either single or double).

Escape Characters

More Escape Sequence
Template Literals

String Methods

 
 
Questions:
  1. Try to replace “dog” with “cat” from Sample String → “ he quick brown fox jumps over the lazy dog. If the dog barked, was it really lazy?”
  1. Write a function to convert string to lowercase;
  1. Check “Fox” is includes . Sample String → “ he quick brown fox jumps over the lazy dog. If the dog barked, was it really lazy?”
  1. Check String end with “?” . Sample String → “ he quick brown fox jumps over the lazy dog. If the dog barked, was it really lazy?”
  1. Extract Amount from string → “ I bought car at ₹ 550000 “