Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 07 03:10
    @bjorno43 banned @doctor-sam
  • Aug 17 2019 09:33
    User @bjorno43 unbanned @linkin-park
  • Jun 20 2019 21:19
    @bjorno43 banned @shenerd140
  • May 10 2019 09:13
    @bjorno43 banned @zhaokunhaoa
  • Apr 27 2019 19:46
    @mstellaluna banned @zhonghuacx
  • Apr 25 2019 17:12
    @mstellaluna banned @cmal
  • Apr 01 2019 18:11
    thecodingaviator labeled #31179
  • Apr 01 2019 18:11
    thecodingaviator labeled #31179
  • Apr 01 2019 18:09
    thecodingaviator commented #31179
  • Apr 01 2019 18:09
    thecodingaviator labeled #31182
  • Apr 01 2019 18:09
    thecodingaviator labeled #31182
  • Apr 01 2019 18:07
    thecodingaviator commented #31182
  • Apr 01 2019 18:07
    thecodingaviator labeled #31190
  • Apr 01 2019 18:07
    thecodingaviator labeled #31190
  • Apr 01 2019 18:07
    thecodingaviator commented #31190
  • Apr 01 2019 18:05
    thecodingaviator commented #31157
  • Apr 01 2019 18:04

    thecodingaviator on master

    remove A (#31157) (compare)

  • Apr 01 2019 18:04
    thecodingaviator closed #31157
  • Apr 01 2019 18:04
    thecodingaviator closed #33788
  • Apr 01 2019 18:04
    thecodingaviator commented #33788
Pieter Stokkink
@forkerino
That sounds...... sketchy
Kyle Holm
@thekholm80
Pieter Stokkink
@forkerino
I guess you had to be there.
and stoned out of your mind.
Kyle Holm
@thekholm80
lol I've never watched it stoned, but you may be right
Pieter Stokkink
@forkerino
I don't get stoned.... anymore.
Joseph
@revisualize
about @revisualize
CamperBot
@camperbot
:star2: 4342 | @revisualize |http://www.freecodecamp.com/revisualize
Pieter Stokkink
@forkerino
about @VincentAdultman
CamperBot
@camperbot
:warning: no user found for vincentadultman
Kyle Holm
@thekholm80
If i lived somewhere where it was legal i'd consider it, but I don't
Pieter Stokkink
@forkerino
You make sense. Here it is in a grey area. Not completely legal, not completely illegal. I don't care for it.

:warning: no user found for vincentadultman

@thekholm80 You still can!

I'm off.
Kyle Holm
@thekholm80
lol i should get it for a testing account
have a good night @forkerino
Pieter Stokkink
@forkerino
you should
forkerino @forkerino :zzz:
Nathaniel Suchy (catgirl)
@irlcatgirl
@Burinson MDN is your best friend - if you have a javascript question - read there first - it saves you time since you don’t have to ask a question and wait for a response.
Margaret
@Margaret2
lol revizzy and :fork_and_knife: man in the Help room? what is happening!! :sweat_smile:
davidlair
@davidlair
?
Need h4lp?
Uriel Guzmán
@Burinson

How do I make this:

function palindrome(str) {
  // Good luck!
 str = str.replace(/\W/g, '').toLowerCase;
  return true;
} 



palindrome("eye");

return false if the palindrome does not match? I already got it to return true if the str is a palindrome

korzo
@korzo
@Burinson Now reverse str, compare it to str and return result
Ravi Kishore Thella
@ravikishorethella
@Burinson use this regex /[\W_]/g
@Burinson after converting to lowercase store that in new var and compare that with the str
Uriel Guzmán
@Burinson
@korzo
function palindrome(str) {
  // Good luck!
 str === str.replace(/\W/g, '').toLowerCase.split('').reverse().join('');
  return true;
} 



palindrome("eye");
korzo
@korzo
@Burinson No, you must store reversed string in new variable, otherwise you can't compare it
@Burinson
var reversed = str.split('').reverse().join('');
Uriel Guzmán
@Burinson

@korzo ```
function palindrome(str) {
// Good luck!
str = str.replace(/\W/g, '').toLowerCase;
var reversed = str.split('').reverse().join('');

return true;
}

palindrome("eye");
```

function palindrome(str) {
  // Good luck!
 str = str.replace(/\W/g, '').toLowerCase;
  var reversed = str.split('').reverse().join('');

  return true;
} 



palindrome("eye");
korzo
@korzo
@Burinson now compare str with reversed and return result
Uriel Guzmán
@Burinson
@korzo
function palindrome(str) {
  // Good luck!
 str = str.replace(/\W/g, '').toLowerCase;
  var reversed = str.split('').reverse().join('');
  str = reversed;
  return true;
} 



palindrome("eye");
Ravi Kishore Thella
@ravikishorethella
@Burinson single = is for assigning
korzo
@korzo
@Burinson this is assignment ( = )
To compare use ===
Uriel Guzmán
@Burinson
function palindrome(str) {
  // Good luck!
 str = str.replace(/\W/g, '').toLowerCase;
  var reversed = str.split('').reverse().join('');
  str === reversed;
  return true;
} 



palindrome("eye");
It gives me an error
Ravi Kishore Thella
@ravikishorethella
@Burinson that is wrong
korzo
@korzo
@Burinson Because you are returning always true
Return result of comparison
Ravi Kishore Thella
@ravikishorethella
@Burinson that can be done in two ways
1> use return
2> use if else condition
Uriel Guzmán
@Burinson
TypeError: str.split is not a function
I mean, this error too
function palindrome(str) {
  // Good luck!
 str = str.replace(/\W/g, '').toLowerCase;
  var reversed = str.split('').reverse().join('');

  if (str === reversed) {
  return true;
} else {
  return false;
}
}



palindrome("eye");
korzo
@korzo
@Burinson Missing parenthesis after toLowerCase
Uriel Guzmán
@Burinson

@korzo

function palindrome(str) {
  // Good luck!
 str = str.replace(/\W/g, '').toLowerCase();
  var reversed = str.split('').reverse().join('');

  if (str === reversed) {
  return true;
} else {
  return false;
}
}



palindrome("eye");

Okay, it's nearly done, one more error

Katie
@SpaceChick04
Hey, Can anyone help me out with a "simple" fix to VERTICALLY spacing text within a div? Here's my pen. I'm trying to change the header text and move it down a tiny bit. https://codepen.io/SpaceChick04/pen/xrmZvZ?editors=1100
Uriel Guzmán
@Burinson
palindrome("_eye") should return true.
Ravi Kishore Thella
@ravikishorethella
Uriel Guzmán
@Burinson
It doesn't replace the underscore
Ravi Kishore Thella
@ravikishorethella
@Burinson use that regex