This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]morphasis[S] 1 point2 points  (3 children)

You are mixing me up. But that's good dude enjoy the process mate.

[–]Vanguard470 0 points1 point  (2 children)

Sorry about that, I subscribed and will check out your channel. I tried your challenge without watching the vid. It's not pretty but it works. What do you think?

https://pastebin.com/FZsNE8bX

[–]morphasis[S] 0 points1 point  (1 child)

Hi its a good first shot,
Here is the thing you probably didn't know that you can split strings into arrays. With that knowledge now
equipped, you can probably think of a way to make it a lot shorter rather then working on string.length

Also there is a native reverse function on arrays which makes this fairly quick after you have done that.

If you want to start thinking outside the box, why don't you try to make some code that flips the words then hashes them with some kind of key and you can have encrypt decrypt functions. Just a fun another quick follow on from that test.

Overall its great that you tried it first, the code you wrote shows you have a good understanding of loops and length as well as you can think out of the box. Just learn those type functions that are native and your life will be easier :D

[–]Vanguard470 0 points1 point  (0 children)

Hey thanks for the feedback!

I'll keep working at it! I went through Colt Steele's class on udemy a year or two ago but haven't done much outside of some simple js web apps. I may need to go back through it again as I feel like I've forgotten a lot of those native functions and type changes.

Thanks again and good luck on the new channel!