Useful JavaScript STRING METHODS 🧵

  Рет қаралды 12,909

Bro Code

Bro Code

Күн бұрын

00:00:00 intro
00:00:28 .charAt()
00:01:34 .indexOf()
00:02:03 .lastIndexOf()
00:02:15 .length
00:02:40 .trim()
00:03:13 .toUpperCase()
00:03:22 .toLowerCase()
00:03:28 .repeat()
00:03:42 .startWith()
00:05:00 .endsWith()
00:05:18 .includes()
00:05:43 .replaceAll()
00:06:53 .padStart()
00:07:35 .padEnd()
00:07:45 conclusion
// string methods = allow you to manipulate and work with text (strings)
let userName = "Bro Code";
let phoneNumber = "123-456-7890";
//console.log(userName.length);
//console.log(userName.charAt(0));
//console.log(userName.indexOf("o"));
//console.log(userName.lastIndexOf("o"));
//userName = userName.trim();
//userName = userName.toUpperCase();
//userName = userName.toLowerCase();
//userName = userName.repeat(3);
//let result = userName.startsWith(" ");
//let result = userName.endsWith(" ");
//let result = userName.includes(" ");
//phoneNumber = phoneNumber.replaceAll("-", "");
//phoneNumber = phoneNumber.padStart(15, "0");
//phoneNumber = phoneNumber.padEnd(15, "0");
console.log(phoneNumber);

Пікірлер: 13
@BroCodez
@BroCodez 10 ай бұрын
// string methods = allow you to manipulate and work with text (strings) let userName = "Bro Code"; let phoneNumber = "123-456-7890"; //console.log(userName.length); //console.log(userName.charAt(0)); //console.log(userName.indexOf("o")); //console.log(userName.lastIndexOf("o")); //userName = userName.trim(); //userName = userName.toUpperCase(); //userName = userName.toLowerCase(); //userName = userName.repeat(3); //let result = userName.startsWith(" "); //let result = userName.endsWith(" "); //let result = userName.includes(" "); //phoneNumber = phoneNumber.replaceAll("-", ""); //phoneNumber = phoneNumber.padStart(15, "0"); //phoneNumber = phoneNumber.padEnd(15, "0"); console.log(phoneNumber);
@susguy446
@susguy446 8 ай бұрын
The video was postet 33 minutes ago but the comment is 1 month old 🤨
@vallunacoder.wecodetogether
@vallunacoder.wecodetogether 5 ай бұрын
dude I'm finally understanding java script!
@MrPvssy
@MrPvssy 8 ай бұрын
Daddy Brocode teaches me lots
@chiggywiggy524
@chiggywiggy524 3 ай бұрын
Why you always write that same comment 😭
@pritampatil4163
@pritampatil4163 8 ай бұрын
superb video
@capslock3250
@capslock3250 8 ай бұрын
Thanks
@em_the_bee
@em_the_bee 8 ай бұрын
Wow, Javascript has string methods!
@maenam4520
@maenam4520 4 ай бұрын
Great video and It is so funny how to teach beginners the trim method and you say “hey white spaces removed from console “ where its not showing with or without trim 😂
@physchopath8742
@physchopath8742 8 ай бұрын
Can you make a tutorial on ruby aswell please
@Inspire_Transform
@Inspire_Transform 29 күн бұрын
Key Insights 🎯 The CharAt method is useful for retrieving individual characters from a string, using their corresponding index. 🎯 The IndexOf method helps in finding the index of the first occurrence of a character in a string, which can be useful for further manipulations. 🎯 The Length property provides a simple way to determine the length of a string, which is often needed for various operations. 🎯 The Trim method is handy for removing leading and trailing whitespace from a string, ensuring clean input. 🎯 The ToUpperCase and ToLowerCase methods enable easy conversion of a string to uppercase and lowercase, respectively. 🎯 The Includes method helps in checking whether a string contains a specific substring, which is useful for conditional checks. 🎯 String methods provide powerful tools for manipulating and working with text, enhancing the functionality of JavaScript applications.
@durgamolleticcbpain1846
@durgamolleticcbpain1846 3 ай бұрын
node js and express js tutorils bro
Learn JavaScript STRING SLICING in 8 minutes! ✂️
8:02
Bro Code
Рет қаралды 9 М.
Ich programmiere eine VOKABEL-APP
1:13:54
Programmieren lernen
Рет қаралды 67 М.
Which one is the best? #katebrush #shorts
00:12
Kate Brush
Рет қаралды 27 МЛН
1❤️#thankyou #shorts
00:21
あみか部
Рет қаралды 88 МЛН
JavaScript ARRAYS of OBJECTS are easy! 🍎
10:01
Bro Code
Рет қаралды 14 М.
JavaScript DESTRUCTURING in 8 minutes! 💥
8:41
Bro Code
Рет қаралды 13 М.
If statements in JavaScript are easy 🤔
15:58
Bro Code
Рет қаралды 23 М.
STOP Using Classes In JavaScript | Prime Reacts
14:02
ThePrimeTime
Рет қаралды 223 М.
Learn JavaScript ARRAYS in 8 minutes! 🗃
8:06
Bro Code
Рет қаралды 23 М.
Build a JavaScript random password generator 🔑
12:05
Bro Code
Рет қаралды 12 М.
Learn JavaScript WHILE LOOPS in 8 minutes! 🔁
8:12
Bro Code
Рет қаралды 19 М.
Learn JavaScript CALLBACKS in 7 minutes! 🤙
7:17
Bro Code
Рет қаралды 36 М.
Learn JavaScript Hoisting In 5 Minutes
5:40
Web Dev Simplified
Рет қаралды 120 М.
All Rust string types explained
22:13
Let's Get Rusty
Рет қаралды 150 М.