hi every one
there is a test in one of “Basic JavaScript” with name “Record Collection”.
in this (https://forum.freecodecamp.org/t/freecodecamp-challenge-guide-record-collection/18261) topic has two solution an in solution 2 there is this code and its doing well, but when it remove barackets frome [value] in the end , it doesn’t work
do you know why?
whats the difference between [value] and value from upper elseif ?
i mean instead of this [value] i wrote this value
and in two line upper than that, there is a value without brackets and if you add bracket to that, you’ll get error!