The first statement assigns a string to the variable people. The subsequent assignments split the string into various ar
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
The first statement assigns a string to the variable people. The subsequent assignments split the string into various ar
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]+/);
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!