Learn JavaScript STRING SLICING in 8 minutes! ✂️

preview_player
Показать описание
// string slicing = creating a substring
// from a portion of another string

// ------------ EXAMPLE 1 ------------
const fullName = "Bro Code";

// ------------ EXAMPLE 2 ------------

Рекомендации по теме
Комментарии
Автор

// 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


let username = email.slice(0, email.indexOf("@"));
let extension = + 1);

console.log(username);
console.log(extension);

BroCodez
Автор

you rock bro! thanks a bunch finally im understanding .js!

mueblenudecarpinteriacancu
Автор

Hey bro!..Big fan of yours... could you please consider to make a playlist on Android development

ponrajsapient
Автор

<*_> 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. <_*>

piotrmazgaj
Автор

waiting for your react.js tutorial ^^ i love your videos

marbles
Автор

❤❤Hii❤❤
spreading knowledge
.Good work.
😊ज्ञान बांटने से बढ़ता है😊

shoaibalam
Автор

Pls make a course on entity framework core

kaviyasekar
Автор

the thumbnail💀









H e l l o

Hell

O

FireszCh
Автор

can u make a rust course ?

somebody want it too ?

nzqxt
Автор

So apparently my first name is 0, 4 middle name is 4, 12 and last name is 12, 18

ORITSU_M...
Автор

Hey bro. i created a website using HTML and CSS but how to share that as a URL. please reply

nadundilshan