to answer questions about increasing the length & using negative values:
Top-level
11 comments
@lily arrays and objects do this in js yes. what const means is you cannot change it with the = statement. you can push to an array, pop elements off, you can access properties of objects and methods on them and change all of them- but you cant go and do @lily const arr = [] it is Just the = on the variable itself, none of its fields or anything is constant @lily what i find more weird honestly is how strict strings and numbers are. cause- why doesnt this work? strings are arrays of characters why are they more constant than normal arrays? @h @lily yeah the indices are all treated as strings (but optimised internally). by the spec arrays are "exotic objects", which means their impl can do weird things ( also fun fact most array methods dont actually require an array, so you can do |
@h@social.besties.house what if you use floats? :blobcatthinkowo: