The first statement assigns a string to the variable people. The subsequent assignments split the string into various ar
Posted: Sat May 14, 2022 6:32 pm
The first statement assigns a string to the variable people. The subsequent assignments split the string into various arrays. For each of the statements, draw the memory cell associated with the variable after the assignment has been made. Use boxes to show array items. people = 'von Neumann, John 1903\n' + 'Turing, Alan 1913': split1 = people.split(' '); split2 = people.split(); split3 = people.split(/[.\n]/); split4 = people.split(/(,\n]+/);