Bonfire: Check for Palindromes JavaScript FreeCodeCamp.com

preview_player
Показать описание

Fan funding goes towards buying the equipment necessary to deliver 4k videos, 4k webcam, and a high quality microphone better audio. Any support is very appreciated!

My channel is here for aspiring programmers to learn easier and help debug any issues from the many great free resources available on the web.

Check out my other videos going over HTML, CSS, Ruby, Ruby on Rails, Java, JavaScript, Python, PHP, SQL, Command Line, BootStrap, jQuery, and WordPress from CodeCademy, CodeCombat, FreeCodecamp and more!

-~-~~-~~~-~~-~-
Please watch: "How I Became a Developer | My Developer Journey of the Last 3 Years | Ask a Dev"
-~-~~-~~~-~~-~-
Рекомендации по теме
Комментарии
Автор

Thanks for the video. It took me about 29 minutes to realize that I was missing a period in one of my str=str.replace lines. Grateful to have your videos as a reference

jshackelford
Автор

Thank you sir for these videos. They do really help in thinking like a programmer.

josepharias
Автор

Thanks a lot for these videos. Your explanations help me understand the solution better.

ichigoflavored
Автор

I feel guilty looking at your code and helping us out. I feel I should be struggling and learning the hard way. Is this a guilty feeling you feel still or is it just me?

thisguymartin
Автор

I am having trouble getting the spaces removed with " ", "", I can get race car to merge using and get rid of space with repacing the whole string. People at free code camp say I should use regex and not hard code. I passed this test but am trying to understand why it is not working the way yours is working when I am following your example to the letter. any suggestions.

jonathonwright
Автор

I tried it your way.. code by code.. and mine is not recognizing the else return false
what could be that issue?

NearestDelia
Автор

can split. be done at single line of code instead of using multiple times.

AshishSahu
Автор

I feel like giving up and i would like to admit, i cant think like a programmer does

fancyAlex
Автор

function palindrome(str) {
str = str.toLowerCase().replace(/[\W_]/g, '');
for(var i = 0, len = str.length - 1; i < len/2; i++) {
if(str[i] !== str[len-i]) {
return false;
}
}
return true;
}
palindrome("eye", "racecar", "RaceCar", "race CAR", "2A3*3a2", "2A3 3a2", "2_A3*3#A2");

romanFactsPedia
Автор

Tutorials will be great if that person had some advanced knowledge... and not like a regular learner on FCC

jayvasant
welcome to shbcf.ru