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:55:38
Turning Point USA
3 hours agoWASHINGTON D.C. PRAYER VIGIL FOR CHARLIE KIRK
38.6K17 -
35:54
The Mel K Show
3 hours agoMel K & Tim James | Healing is an Inside Job | 9-14-25
18.2K2 -
LIVE
IsaiahLCarter
6 hours ago $0.87 earnedCharlie Kirk, American Martyr (with Mikale Olson) || APOSTATE RADIO 028
428 watching -
16:43
Mrgunsngear
10 hours ago $1.35 earnedKimber 2K11 Pro Review 🇺🇸
7.63K11 -
13:40
Michael Button
1 day ago $0.33 earnedThe Strangest Theory of Human Evolution
5.34K11 -
10:19
Blackstone Griddles
1 day agoMahi-Mahi Fish Tacos on the Blackstone Griddle
4.27K1 -
23:51
Jasmin Laine
1 day ago“Stop Wasting My Time!”—Trump's BRUTAL WARNING To Canada As Poilievre ROASTS CBC LIVE
4.12K22 -
9:54
Millionaire Mentor
1 day agoNBC Host EXPOSES JB Pritzker For Saying This About Trump
1.83K4 -
1:35:39
SB Mowing
2 days agoIt took the WHOLE NEIGHBORHOOD to uncover this yards SHOCKING SECRET
86.8K61 -
12:52
ROSE UNPLUGGED
23 hours agoFrom Vision to Legacy: Charlie Kirk
54.1K19