Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

MIA Chu & Ariel#32

Closed
Chu13 wants to merge 1 commit intoironhack-labs:masterironhack-labs/lab-javascript-basic-algorithms:masterfrom
Chu13:masterChu13/lab-javascript-basic-algorithms:masterCopy head branch name to clipboard
Closed

MIA Chu & Ariel#32
Chu13 wants to merge 1 commit intoironhack-labs:masterironhack-labs/lab-javascript-basic-algorithms:masterfrom
Chu13:masterChu13/lab-javascript-basic-algorithms:masterCopy head branch name to clipboard

Conversation

@Chu13
Copy link

@Chu13 Chu13 commented Oct 16, 2017

No description provided.

@dsoraluz
Copy link

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.

@dsoraluz dsoraluz closed this Oct 19, 2017
var palindrome = prompt ("Type any word");
palindrome = palindrome.replace(/\s/g,"");

if (palindrome === palindrome.split("").reverse().join("")) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great use of the split(), reverse(), and join() functions here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.