Premium Only Content
APRENDA A PROGRAMAR DE FORMA DESCOMPLICADA ! EXEMPLO DE USO DO RECURSO ...SPREAD - JAVASCRIPT
O Spread Operator é usado com bastante frequência principalmente quando queremos utilizar a imutabilidade, ou seja, criar um objeto novo a partir de um objeto existente.
Outro exemplo seria:
const arr = [0, 1, 2]
Então, se eu quisesse criar um novo vetor eu faria:
constNewArr = [...arr, 3]
Somente esses 3 pontinhos já é o Spread Operator.
E o que ele faz?
Ele nos retornará um vetor novo com o 0,1,2,3.
===================================================
NOSSA LISTA DE CURSOS DISPONÍVEIS, APRENDA AGORA!
TipsCode - Curso Desenvolvedor FullStack Turbo
https://go.hotmart.com/S73665094L
.
Python Academy - Oficina Python
https://go.hotmart.com/K73665221J
.
Programação em Python
https://go.hotmart.com/U73842948B
.
JavaScript do absoluto zero + Apostilha de Estudo + Link para ex
https://go.hotmart.com/C73740254W
-
2:24:09
vivafrei
11 hours agoEp. 290: Canada's Darkest Week; Comey Fix is In! Tariffs, SNAP, Hush Money Win & MORE!
192K113 -
LIVE
EricJohnPizzaArtist
5 days agoAwesome Sauce PIZZA ART LIVE Ep. #68: DDayCobra Jeremy Prime!
171 watching -
LIVE
meleegames
1 hour ago32X Roulette - 30 Years. 32 Games. 32X.
83 watching -
LIVE
SOLTEKGG
17 minutes ago(30+ KILL WORLD RECORD) - Battlefield 6
57 watching -
LIVE
HELMETFIRE
55 minutes ago🟢GAMING WITH FIRE EP15🟢
46 watching -
LIVE
BubbaSZN
1 hour ago🔴 LIVE - FARTNITE W/ @CATDOG & @CHEAP
34 watching -
2:54:01
LadyDesireeMusic
4 hours ago $5.07 earnedCookin & Convo - Potato Soup, Ham & Apple Pie
31.5K3 -
27:05
Robbi On The Record
7 hours ago $4.19 earnedThe Secret to Aging Strong: What Your Body’s Been Trying to Tell You
18.9K4 -
3:27:19
bucketofish
5 hours ago///ARC Raiders || Loot, Scoot + Boogie
24.6K -
LIVE
iCheapshot
2 hours ago $0.25 earnedGames With Catdog | Fortnut Newb
29 watching