Codecademy: JavaScript “Search Text for Your Name” 7/7 – Victory!
My Sunday nights are even more crazier. “Log it!” 6/7 code: var text = “Adam said: Who the hell is this, paging me at 5:45 in the morning \ crack of dawning. Wipe the cold out of my eye, see who’s this paging \ me, and why. My name is Biggie Adam Smalls.”; var myName = “Adam”; var hits = []; for (var i = 0; i < text.length; i++) { if (myName[0] === text[i]) …