Learn JavaScript STRING SLICING in 8 minutes! ✂️
HTML-код
- Опубликовано: 16 сен 2024
- // string slicing = creating a substring
// from a portion of another string
// string.slice(start, end)
// ----------- EXAMPLE 1 -----------
const fullName = "Bro Code";
let firstName = fullName.slice(0, 3);
let lastName = fullName.slice(4, 8);
console.log(firstName);
console.log(lastName);
// ----------- EXAMPLE 2 -----------
const email = "Bro1@gmail.com";
let username = email.slice(0, email.indexOf("@"));
let extension = email.slice(email.indexOf("@") + 1);
console.log(username);
console.log(extension);
// string slicing = creating a substring
// from a portion of another string
// string.slice(start, end)
// ------------ EXAMPLE 1 ------------
const fullName = "Bro Code";
let firstName = fullName.slice(0, 3);
let lastName = fullName.slice(4, 8);
console.log(firstName);
console.log(lastName);
// ------------ EXAMPLE 2 ------------
const email = "Bro1@gmail.com";
let username = email.slice(0, email.indexOf("@"));
let extension = email.slice(email.indexOf("@") + 1);
console.log(username);
console.log(extension);
Do django next
bro code doing gods work
Hey bro!..Big fan of yours... could you please consider to make a playlist on Android development
Great idea
you rock bro! thanks a bunch finally im understanding .js!
This is my seal. I have watched the entire video, understood it, and I can explain it in my own words, thus I have gained knowledge. This is my seal.
waiting for your react.js tutorial ^^ i love your videos
❤❤Hii❤❤
spreading knowledge
.Good work.
😊ज्ञान बांटने से बढ़ता है😊
I'm learning!!
Pls make a course on entity framework core
the thumbnail💀
H e l l o
Hell
O
Bro can you teach some x++ coding?
Do django next
can u make a rust course ?
somebody want it too ?
So apparently my first name is 0,4 middle name is 4,12 and last name is 12,18
REDRUM
Hey bro. i created a website using HTML and CSS but how to share that as a URL. please reply
Anderson Kimberly Miller Gary Moore Cynthia
Do django next
Do django next