Bonfire: Reverse a String Basic Algorithm Scripting FreeCodeCamp.com

preview_player
Показать описание
Brief video going over the bonfire Reverse a String in the Basic Algorithm Scripting section.

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 making this video, it helped.
In order to make it a bit more concise, you can do each step consecutively.

str =

.join() parameters are such that if you use an empty string (an empty set of single or double apostrophes) to define the separator, all the elements in the string are joined without any characters in between (no spaces or commas). Obviously what was done here worked because the separator is specifically defined. Same difference.
As I'm quickly learning with code, there is more than 1 way to do things.

GabeHiggins
Автор

Awesome series.

This was my solution on reversing a string:
let backwards=[];
function spinWord(x){

for(counter=x.length; counter>0; counter--){

}
document.writeln("The string '"+x+"' is now reversed: "+backwards);
}

spinWord("The Steelers");

blueballedtech
Автор

thank you so much sire i like this channel and i hope you to continue of Programming 😘😘

theartboxofcode
Автор

Using reverse() seems like an easy way out. I didnt even know about that method so I had to use "for" loops

zeroxcrusher
Автор

Helpful, but is there a way you can make the code appear larger in upcoming screencasts. I gotta squint to read, so hard to keep up.

mollyeichar
Автор

Another way you can do it is with a for loop for(let i = str.length - 1; i >= 0; i- -){ console.log(str[i]);} I'm not sure why but the first value in this loop is always a undefined hence the str.length - 1;

darkquaesar
Автор

Where's the Ruby on rails video bob ?

adamkenton
visit shbcf.ru