Please enable JavaScript.
Coggle requires JavaScript to display documents.
JavaScript (JS (Array [] (knows the length), Doesn't like double…
JavaScript
JS
Array []
knows the length
Doesn't like double quotes
use singular ones
Unshift
Same as push but puts the new element first
even increments the indexes
Push
To save to things
Uses this a lot
this.AddToLikes = function (movie) { ...}
Can get value of element on page
Even Current element being interacted with
$(this).val()
Hidden form element too
$('input#UrlAlias').val()
array []
push to send things to an array
splice to remove a index/record
Use this.
Can make a function equal result