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
-
13:17
Oliur
2 days ago $0.42 earnedMake your Mac last. Don't make these mistakes.
2.85K -
LIVE
FusedAegisTV
1 hour ago$1000 Fortnite Tournament | 19 TEAMS!! #RumbleGaming
84 watching -
15:49
Sideserf Cake Studio
8 hours ago $0.18 earnedThe Most Hyperrealistic Labubu Cake EVER MADE
2.82K1 -
13:12
Actual Justice Warrior
4 hours agoBlack Activist STEALS From Black Youth
14.2K15 -
8:28
nospeedlimitgermany
2 days ago $0.16 earnedMercedes-AMG A 45 S | 421 PS | Top Speed Drive German Autobahn No Speed Limit POV
2.57K3 -
LIVE
BigTallRedneck
3 hours ago$1,000 Fortnite Duo Tournament Exclusively on Rumble!
113 watching -
47:26
The Finance Hub
5 hours ago $0.98 earnedI CAN'T BELIEVE WHAT JUST HAPPENED TO AOC...
2.93K6 -
22:09
MYLUNCHBREAK CHANNEL PAGE
1 day agoOld World Dwarfs
29.1K17 -
20:22
World2Briggs
16 hours ago $0.12 earnedTop 10 Little-Known Great Small Towns
1.24K1 -
40:35
The Bryce Eddy Show
5 days ago $0.08 earnedSam Anthony: Taking Journalism Back from the Globalist Machine
4.88K1