MIA Chu & Ariel#32
MIA Chu & Ariel#32Chu13 wants to merge 1 commit intoironhack-labs:masterironhack-labs/lab-javascript-basic-algorithms:masterfrom
Conversation
|
Great job on getting all the way to the Palindrome exercise. The most important takeaway from this exercise is to understand how everyday problems can be solved with the help of a well written program. Writting code is essentially teaching the computer or machine to think like a human and so we must try to thing of everything in logical terms. This was also your first go at paired programming so you got to practice your communication skills as you took turns between being the one who writes the code (the driver) and the one who directs the writting of the code (the navigator). This an important skill to master as you will come across this scenario many times as developer in the real world. Personal skills matter just as much as technical skills. |
| var palindrome = prompt ("Type any word"); | ||
| palindrome = palindrome.replace(/\s/g,""); | ||
|
|
||
| if (palindrome === palindrome.split("").reverse().join("")) { |
There was a problem hiding this comment.
Great use of the split(), reverse(), and join() functions here.
No description provided.