JavaScript substr, startsWith, and endsWith Functions - Hindi

Опубликовано: 17 Май 2026
на канале: Ashish Saluja - IT Guru
193
8

My Udemy Course on JavaScript Logic Building and Coding Practice in English:
https://www.udemy.com/course/javascri...

Welcome to this comprehensive JavaScript tutorial by Ashish Saluja! In this video, we'll dive into the substr, startsWith, and endsWith functions to empower your string manipulation skills.

First, we'll explore the substr function, which allows you to extract a portion of a string based on the provided starting index and optional length. Learn how to use substr effectively to extract substrings from strings and understand its practical applications through hands-on coding examples.

Next, we'll delve into the startsWith function, which enables you to check if a string starts with a specific substring. Gain a clear understanding of the startsWith syntax and witness its functionality in action with practical demonstrations. Learn how to perform case-sensitive and case-insensitive checks and leverage this function in your JavaScript projects.

Moving forward, we'll uncover the endsWith function, which determines if a string ends with a given substring. Explore the endsWith syntax and see how it can be utilized to check for specific endings in strings. We'll provide insightful examples and tips for effective usage.

Throughout the video, Ashish Saluja, an experienced JavaScript developer, will guide you step-by-step, ensuring clarity and understanding. Real-world scenarios and coding exercises will help solidify your grasp on these powerful string manipulation functions.

Code from practical examples in this video:

StringSubstrStartsWithEndsWithExample.js : https://github.com/ashsal/learning-ja...

String Data Type:    • Introduction to String Data Types in JavaS...  

String Slice and Replace Functions:    • Exploring String Slice and Replace Functio...  

String Length, toUpperCase(), and toLowerCase() :    • String Length, toUpperCase(), and toLowerC...  

String Trim and indexOf Functions:    • Exploring Trim and indexOf Functions in Ja...  

Data Types Introduction Part 1:    • Introduction to JavaScript Data Types: Und...  

Data Types Introduction Part 2:    • JavaScript Data Types Explained with Code ...  

About Me (Ashish Saluja):    • Video