The first statement assigns a string to the variable people. The subsequent assignments split the string into various ar

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
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

Post by answerhappygod »

The First Statement Assigns A String To The Variable People The Subsequent Assignments Split The String Into Various Ar 1
The First Statement Assigns A String To The Variable People The Subsequent Assignments Split The String Into Various Ar 1 (29.88 KiB) Viewed 86 times
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!
Post Reply