Strings: [bracket notation] - Beau teaches JavaScript

  Рет қаралды 30,320

freeCodeCamp.org

freeCodeCamp.org

7 жыл бұрын

Bracket notation allows you to access a specific character in a string.
🐦 Beau Carnes on Twitter: / carnesbeau
⭐JavaScript Playlists⭐
▶JavaScript Basics: • JavaScript Basics Course
▶Data Structures and Algorithms: • Data Structures and Al...
▶Design Patterns: • Design Patterns - Beau...
▶ES6: • ES6 - Beau teaches Jav...
▶Clean Code: • Clean Code - Beau teac...
-
We're busy people who learn to code, then practice by building projects for nonprofits. Learn Full-stack JavaScript, build a portfolio, and get great references with our open source community.
Join our community at freecodecamp.com
Read great tech articles at medium.freecodecamp.com

Пікірлер: 13
@AnnaMaria-or7se
@AnnaMaria-or7se 6 жыл бұрын
This helped me understand immutability better. Thank you! Great videos.
@libertysomething
@libertysomething 7 жыл бұрын
You make the material not dry. Great job on the tuts! Was having trouble with other tuts.
@smyasir0
@smyasir0 5 жыл бұрын
Important point - The strings of JS are just like arrays in other languages, difference being immutability in JS. - The first letter of a string myString is queried by ... myString[0] . - The last letter by ... myString[myString.length - 1] .
@smartcode9021
@smartcode9021 2 жыл бұрын
Thank you for this clear explanation.
@jahilkhalfe
@jahilkhalfe 7 жыл бұрын
Like in c++ a string is an array of chars.
@hashtagtrends9886
@hashtagtrends9886 3 жыл бұрын
Thank You @t !
@jamessanday5656
@jamessanday5656 5 жыл бұрын
What program are you running this in please?
@cesarcruz96
@cesarcruz96 7 жыл бұрын
can someone please post a practical example of how indexing in javascript is used? I am learning along but am having a hard time connecting this and other concepts to how I might use them later on in dev.
@BoolFalse
@BoolFalse 6 жыл бұрын
I think in practise you will never use that as it in this video... because it's just for tutorial. but I can give you an example, something like this: // *********************************** var message = "This sentence shouldn't to start with symbol 'a'!"; if ( message ) // this means that message is // not "", not null, not undefined, and not "0", // or with one word: it's not false { if ( message[0] !== "a" ) { console.log( "The message have at least one character and it not started with symbol 'a'." ); } else { alert( "Please enter valid message, which is not starting with symbol 'a'!" ); window.location.reload(); } }
@pelinkayhan
@pelinkayhan 5 жыл бұрын
@@BoolFalse thank youuuuu!
@zcharyma1465
@zcharyma1465 5 жыл бұрын
You type so fast(another skill I wanna improve)
@aaronargottelopez3488
@aaronargottelopez3488 4 жыл бұрын
@luisfernandoyupanquitaco8630
@luisfernandoyupanquitaco8630 5 жыл бұрын
Use the code for good.
THIS keyword - Beau teaches JavaScript
8:48
freeCodeCamp.org
Рет қаралды 57 М.
Objects - Beau teaches JavaScript
8:40
freeCodeCamp.org
Рет қаралды 42 М.
Was ist im Eis versteckt? 🧊 Coole Winter-Gadgets von Amazon
00:37
SMOL German
Рет қаралды 30 МЛН
МАМА И STANDOFF 2 😳 !FAKE GUN! #shorts
00:34
INNA SERG
Рет қаралды 4,3 МЛН
Мы никогда не были так напуганы!
00:15
Аришнев
Рет қаралды 5 МЛН
DOT NOTATION vs BRACKET NOTATION in JavaScript
9:59
Deeecode The Web
Рет қаралды 3,7 М.
How programmers flex on each other
6:20
Fireship
Рет қаралды 2,2 МЛН
20 String Methods in 7 Minutes - Beau teaches JavaScript
7:00
freeCodeCamp.org
Рет қаралды 130 М.
LEVY DEFEATS 3120 ELO HANS NIEMANN
9:16
Gotham Games
Рет қаралды 105 М.
Functions vs Classes: When to Use Which and Why?
10:49
ArjanCodes
Рет қаралды 144 М.
This is Why Anand is a Legend!
11:59
agadmator's Chess Channel
Рет қаралды 100 М.
Functions - Beau teaches JavaScript
7:18
freeCodeCamp.org
Рет қаралды 68 М.
Levy vs Hans aka YOUTUBE GUY vs USA's 1st World Chess Champ
11:35
JavaScript Async Await
7:31
Web Dev Simplified
Рет қаралды 802 М.
JS Interview - dot notation vs square brackets - Question 12
5:04
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 9 М.