Skip to content

Instantly share code, notes, and snippets.

@DFOXpro
Created December 6, 2014 19:01
Show Gist options
  • Save DFOXpro/e945154557bc40784e21 to your computer and use it in GitHub Desktop.
Save DFOXpro/e945154557bc40784e21 to your computer and use it in GitHub Desktop.
BogotáJS Challenge
/*
* Licence: WTF-PL
*/
var main = function(value){
var i = 0;
value=value.replace(/ /g,"")
while(i < value.length){
if(value[i]!=value[value.length-(1+i)])
return false;
i++;
};
return true;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment