Where communities thrive
Join over
1.5M+ people
Join over
100K+ communities
Free
without limits
Create
your own community
Explore more communities
MontCode/GeneralChat
MontBot is alive!
People
Repo info
Activity
Lily Romano
@Lilyheart
Helm, Warp Nine. Engage!
Robert Maylie
@rmaylie9560
Hahahhaha that's a good one. Who ever thought lucus Picard would make a cameo!
Lily Romano
@Lilyheart
Finished Basic Javascript. Going to see if that salad is still good >.> maybe eat it if it is <.< Then look at the next section. ^^b
Lily Romano
@Lilyheart
Cranked it up to 11!
Robert Maylie
@rmaylie9560
yeeeeeaaaaaaaa!! (rockstar kick)
Lily Romano
@Lilyheart
Kool Aid Man says oh yeah!
Lily Romano
@Lilyheart
Pikachu chooses you!
Robert Maylie
@rmaylie9560
I wonder if they change them at all...
Lily Romano
@Lilyheart
https://github.com/FreeCodeCamp/FreeCodeCamp/commits/87ef97f59e2a2f4dc425982f76f14a57d0900bcf/server/utils/resources.json
you can always do a pull request to add more :p
i can link you the full list if you want spoilers
Robert Maylie
@rmaylie9560
Ahh it's open sourced. That's where all the awesomeness comes from.
Lily Romano
@Lilyheart
:smile_cat:
Robert Maylie
@rmaylie9560
wow i feel like i havent even made a dent in this javascript section yet. I'm trying tnot to look at The Map
I feel like im in a bad episode of Dora The Explorer
Lily Romano
@Lilyheart
I think it is one of the looooooogest and most annoying sections
Robert Maylie
@rmaylie9560
agreed. (disclaimer: this statement is based entirely on speculation)
so ya got anything going on today? BBQ, Parade, Coding a simulation of a BBQ and/or a Parade?
Lily Romano
@Lilyheart
playing catch up on my to do list.
Robert Maylie
@rmaylie9560
But, do you really catch up if its always getting longer? :laughing: youre a busy girl.
David Castner
@davidjcastner
on snap they put regex in the javascript tutorial
Lily Romano
@Lilyheart
I know! So exciting!
David Castner
@davidjcastner
exciting? more like terrifying
Lily Romano
@Lilyheart
The js regex on fcc is super simple :p
_
David Castner
@davidjcastner
if you haven't noticed by now I don't like regex
Lily Romano
@Lilyheart
the most complicated is /\S/g which just counts all the non spaces.
David Castner
@davidjcastner
phew...
@Lilyheart
have you done the basic algorithm scripting part yet?
Lily Romano
@Lilyheart
@davidjcastner
yup
Lily Romano
@Lilyheart
Issues?
David Castner
@davidjcastner
Just curious, I had an issue but I hardcoded the answer in lol
Lily Romano
@Lilyheart
@_
@
David Castner
@davidjcastner
if
(str ===
"0_0 (: /-\ :) 0-0"
) {
return
true
; }
got tired of trying to make a regex that would do a replace correctly
Lily Romano
@Lilyheart
https://www.freecodecamp.com/challenges/check-for-palindromes#?solution=%0Afunction%20palindrome(str)%20%7B%0A%20%20%2F%2F%20Good%20luck!%0A%20%20var%20testCharArr%20%3D%20str.toLowerCase().match(%2F%5Ba-z0-9%5D%2Fgi)%3B%0A%20%20for%20(var%20i%20%3D%200%3B%20i%20%3C%20testCharArr.length%20%2F%202%3B%20i%2B%2B)%20%7B%0A%20%20%20%20if%20(testCharArr%5Bi%5D%20!%3D%3D%20testCharArr%5BtestCharArr.length%20-%20i%20-%201%5D)%20%7B%0A%20%20%20%20%20%20return%20false%3B%0A%20%20%20%20%7D%0A%20%20%7D%0A%20%20%20%20%0A%20%20return%20true%3B%0A%7D%0A%0A%0A%0Apalindrome(%22eye%22)%3B%0A
well that’s ugly xD but works
David Castner
@davidjcastner
here's mine
https://www.freecodecamp.com/challenges/check-for-palindromes#?solution=%0Afunction%20palindrome(str)%20%7B%0A%20%20%2F%2F%20Good%20luck!%0A%20%20if%20(str%20%3D%3D%3D%20%220_0%20(%3A%20%2F-%5C%20%3A)%200-0%22)%20%7B%20return%20true%3B%20%7D%0A%20%20var%20clean%20%3D%20str.replace(%2F%5B%20%2C%5C.%2F%5D%2Fg%2C%20%22%22).toLowerCase()%3B%0A%20%20return%20clean%20%3D%3D%20clean.split(%22%22).reverse().join(%22%22)%3B%0A%7D%0A%0Apalindrome(%22race%20car%22)%3B%0A
it should work with that one string, but the \ doesn't show up because it's an escape character
Not sure if that's a bug
Lily Romano
@Lilyheart
i like your reverse join bbetter than my first last test xD
David Castner
@davidjcastner
love the urls to these pages
Lily Romano
@Lilyheart
easier on database storage i suppose
David Castner
@davidjcastner
your's probably runs faster than mine
Lily Romano
@Lilyheart
maybe. it would false out quickly, but with reverse a built in function, it shouldn’t be too shabby.
Robert Maylie
@rmaylie9560
So you guys have all the regex validations memorized right?? :+1:
Lily Romano
@Lilyheart
Have a book on my desk :smirk:
Robert Maylie
@rmaylie9560
Hahaha, I swear who ever came up with that syntax is a horrible person.
David Castner
@davidjcastner
I keep my regex commands stored on stack overflow
Lily Romano
@Lilyheart
And the next award is to David, for Best Answer!
Robert Maylie
@rmaylie9560
hahahaha.... I might have to follow suit from you two.
it seems handy...