slice Array Method | JavaScript Tutorial

preview_player
Показать описание

In this tutorial we're going to learn about the #slice #JavaScript #Array Method and how it can be used to retrieve a portion of an array.
It can also be used to create a shallow copy of an array which is useful because we usually don't want to modify the original array.

---
Follow me on:
Рекомендации по теме
Комментарии
Автор

Straight-forward, I like your playlist of simple and bite-size lectures !

als
Автор

If you put console.clear(); as the first line in your code then you don't need to worry about the console filling up every time you add something new to the file. This way your output will be fresh every time you save/run the code.

RedEyedJedi
Автор

Great video, you break things down simply and give comprehensive examples. Keep up the good work!

GG-cqjd
Автор

Thanks for the simple and very straightforward explanation.

dioncadiz
Автор

Thank you Florin for sharing this video! Very useful examples

damianodamian
Автор

I was wondering how you get your JS to update like that on the split right screen.

caydenburns
Автор

Great video. How did you get the code results to display in the terminal in VS Code? Do I have to download an extension in VS Code to see results from console.log() ? Thanks!

goldensleeves
Автор

Hey nice video Florin.
Thanks for you initiative, these tutorials really helps me out understanding methods where i was a bit stuck in other trainings.
Bafta!

alexandrugabrieliosif
Автор

as from python background i learn slice mean total number of element in array-num e.g. let arr=[1, 2, 3, 4, 5]; if i slice it arr.slice(-1) it mean total-1 which is 4-1 =3

gooxmsb
Автор

how do you get the console.log to work in you terminal so well??

henryleestudio
Автор

How to get a company name with the sys id using slice method..can anyone help me on this??

roja
Автор

Hello great video, please how where you able to use node as your terminal I use bash and I can't run js files when I save them except I use
node script.js on my terminal

how do I run my javascript file like the way you are running yours

tukuyoma
Автор

So the 1st index (where 2 is) points at 2 but the 4th index (where 5 is) points at 4? That's confusing.

jamesgabbitus
Автор

The confusion came when u pointed 5 but u say 4. I just cursed the inventor.

kalibmedia_official