Challenges:
Copy the code from the console. Then insert it into the codepen below. Change the code so that var newText
becomes an [array]
that concatenates all the "string"
values of var text
. Then use that
[array]
to delete the last entered text entry in the input box:
See the Pen string to array delete last text entry by Justin Sawyer (@JustinSawyer) on CodePen.