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
-
LIVE
The Bubba Army
21 hours agoGOVERNMENT SHUTDOWN! - Bubba the Love Sponge® Show | 10/01/25
3,117 watching -
7:22
Adam Does Movies
18 hours ago $0.26 earnedThe Smashing Machine - Movie Review
7.97K1 -
5:15
Blackstone Griddles
12 hours agoCreamy Cajun Linguine with Bruce Mitchell on the Blackstone Griddle
2.86K1 -
9:18
Freedom Frontline
17 hours agoMarco Rubio DESTROYS Stephanopoulos And Exposes USAID Scam
2.14K10 -
0:39
OfficialJadenWilliams
4 days agoRealizing you're stuck in the Back Rooms
11.7K -
9:14
The Art of Improvement
1 day ago $0.17 earnedHow to Stop Overthinking
8.64K -
8:33
Damon Imani
17 hours agoDamon OBLITERATES Everyone On The View For 8 Minutes Straight! | Compilation Vol.16
10.2K5 -
18:08
Actual Justice Warrior
21 hours agoMamdani CRIES Victim After Eric Adams Drops Out
21.3K18 -
23:08
DeVory Darkins
1 day ago $13.41 earnedDemocrats STUNNED by Trump meeting as Omar EMBARRASSES after shocking statement
20.9K96 -
2:17:10
qixso
15 hours ago $3.49 earnedBO7 ON THE WAY !
28.4K4