Your code :
const [ surName, firstName, otherName ] = "Bello, Osagie, Noah".split(' '); console.log(surName); // Bello => surName = arr[0] console.log(firstName); // Osagie => firstName= arr[1] console.log(otherName ); // Noah => otherName = arr[2]
get exactly name with comma "Bello," "Osagie," "Noah"
thx for tips ^^