These are chat archives for FreeCodeCamp/Help

29th
Sep 2017
Eric Miller
@ericmiller777
Sep 29 2017 00:01
hello
@Gersho that sucks....
Gersho
@Gersho
Sep 29 2017 00:03
¯_(ツ)_/¯
Eric Miller
@ericmiller777
Sep 29 2017 00:23
@Gersho how far are you from london?
@Gersho i hear theres a lot of tech jobs there
Gersho
@Gersho
Sep 29 2017 00:24
i'm in mainland france actually, i live in guadeloupe at the moment
will be trying my luck in Lyon before the end of the year (not much change tho, i'll be there for 2 weeks only)
and london is kinda meh since they're brexiting
Eric Miller
@ericmiller777
Sep 29 2017 00:25
oh i see
Eric Miller
@ericmiller777
Sep 29 2017 00:36
I know you can play yet
file:///C:/Users/Eric/Github/Simon_Game_freeCodeCamp/index.html
oh yea.. nvm
Gersho
@Gersho
Sep 29 2017 00:36
lol
Manish Giri
@Manish-Giri
Sep 29 2017 00:47
@mstellaluna ty
CamperBot
@camperbot
Sep 29 2017 00:47
manish-giri sends brownie points to @mstellaluna :sparkles: :thumbsup: :sparkles:
:cookie: 860 | @mstellaluna |http://www.freecodecamp.com/mstellaluna
Eric Miller
@ericmiller777
Sep 29 2017 01:26
so i have code like this
$("#blue").on("click", function(){
      sound4.play();
      if(playerSequence.length < sequence.length){
      playerSequence.push(1);
      checkSequence();
      console.log(playerSequence);
      }
      $("#blue").css("background-color", "rgba(0, 0, 255, 1)");
      setTimeout(function() {
        $("#blue").css("background-color", "rgba(0, 0, 255, 0.5)");
      }, 407);
});
function checkSequence(){
  if(playerSequence === sequence){
    nextLight();
  }else{
    playerSequence = [];
    console.log("your shitier then the developer");
    currentLight();
  }
}
but
it never is ture
true
can i not compare two arrays like that?
Gersho
@Gersho
Sep 29 2017 01:30
try with stringify() or toString() and compare their strings
Eric Miller
@ericmiller777
Sep 29 2017 01:31
okay
Prabu Rangki
@praburangki
Sep 29 2017 01:31
i don't think that is possible, you can go look at the Array.prototype.every function
Gersho
@Gersho
Sep 29 2017 01:32
every ? how would you articulate the code to use every ?
Eric Miller
@ericmiller777
Sep 29 2017 01:33
your way worked @Gersho thanks
CamperBot
@camperbot
Sep 29 2017 01:33
ericmiller777 sends brownie points to @gersho :sparkles: :thumbsup: :sparkles:
:cookie: 484 | @gersho |http://www.freecodecamp.com/gersho
Prabu Rangki
@praburangki
Sep 29 2017 01:33
for example:
var array1 = [4,8,9,10];
var array2 = [4,8,9,10];

var is_same = (array1.length == array2.length) && array1.every(function(element, index) {
    return element === array2[index]; 
});
Eric Miller
@ericmiller777
Sep 29 2017 01:33
@praburangki thanks
CamperBot
@camperbot
Sep 29 2017 01:33
ericmiller777 sends brownie points to @praburangki :sparkles: :thumbsup: :sparkles:
:cookie: 327 | @praburangki |http://www.freecodecamp.com/praburangki
Eric Miller
@ericmiller777
Sep 29 2017 01:33
but my logic is off
so....
Gersho
@Gersho
Sep 29 2017 01:33
@praburangki interesting, thanks
CamperBot
@camperbot
Sep 29 2017 01:33
gersho sends brownie points to @praburangki :sparkles: :thumbsup: :sparkles:
:cookie: 328 | @praburangki |http://www.freecodecamp.com/praburangki
no strict functionality
but could you guys test it
i feel theres gotta be a bug here
Gersho
@Gersho
Sep 29 2017 02:23
i can push buttons before it's turned on
if you spam buttons while the melody is playing it gets crazy
it lacks something telling you when you make a mistake
so if the user it at level 5 but gets answer 2 wrong, he'll keep pushing buttons and the melody will be playing at the same time
Eric Miller
@ericmiller777
Sep 29 2017 02:29
hmm
@Gersho thanks
CamperBot
@camperbot
Sep 29 2017 02:29
ericmiller777 sends brownie points to @gersho :sparkles: :thumbsup: :sparkles:
api offline
Gersho
@Gersho
Sep 29 2017 02:31
no problem, i love breaking stuff :p
Griffin Novetsky
@griffinn
Sep 29 2017 02:39
Goodnight people!
Eric Miller
@ericmiller777
Sep 29 2017 05:53
hey guys, if you use media querys, how do you change css from javascript?
because then it becomes the standard overs all the css
Long Nguyen
@longnt80
Sep 29 2017 06:22
@ericmiller777 one way is to use js to add/remove classes only
and work with your css normally
for example if you're using BEM naming method, you would add a modifier class name using js
Eric Miller
@ericmiller777
Sep 29 2017 06:44
@longnt80 thanks, lets say i have my regular css and a media query for portait on mobile, then i want to change the font size at a certain point in my code
CamperBot
@camperbot
Sep 29 2017 06:44
ericmiller777 sends brownie points to @longnt80 :sparkles: :thumbsup: :sparkles:
:cookie: 563 | @longnt80 |http://www.freecodecamp.com/longnt80
Eric Miller
@ericmiller777
Sep 29 2017 06:45
how could i change it on both, but still have them responsive?
Darren
@DarrenfJ
Sep 29 2017 07:09
evening fCC
hey buddy :D @ericmiller777
testing
thanks @ericmiller777
CamperBot
@camperbot
Sep 29 2017 07:11
darrenfj sends brownie points to @ericmiller777 :sparkles: :thumbsup: :sparkles:
:cookie: 304 | @ericmiller777 |http://www.freecodecamp.com/ericmiller777
Yaroslav
@YariPL
Sep 29 2017 07:23

hi. have a problem with palindrome. can it be solves somehow like this or I'm something wrong?

function palindrome(str) {

var re = /[^A-Za-z0-9]/g;
str = str.toLowerCase().replace(re ,'');

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

palindrome("eye");

Darren
@DarrenfJ
Sep 29 2017 07:31
@YariPL you need to reverse it as well and then compare str to revStr
or something like that
Yaroslav
@YariPL
Sep 29 2017 07:32
@DarrenfJ thanks i added this and passed
CamperBot
@camperbot
Sep 29 2017 07:32
yaripl sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 2062 | @darrenfj |http://www.freecodecamp.com/darrenfj
Darren
@DarrenfJ
Sep 29 2017 07:33
@YariPL virtual high five :D
Oluwasegun Samuel Osiobor-Diamond
@shegblaze
Sep 29 2017 07:58
@DarrenfJ what am i doing wrong on Uncomment HTML

-->

<h1>Hello World</h1>
<!-- -->

<h2>CatPhotoApp</h2>
<!-- -->

<p>Hello Paragraph</p>
<!--

@camperbot
Yaroslav
@YariPL
Sep 29 2017 08:13

@shegblaze it should looks like this

<h1>Hello World</h1>

<h2>CatPhotoApp</h2>

<p>Hello Paragraph</p>

without comment tag

Oluwasegun Samuel Osiobor-Diamond
@shegblaze
Sep 29 2017 09:54
ok
@YariPL thanks
CamperBot
@camperbot
Sep 29 2017 09:56
shegblaze sends brownie points to @yaripl :sparkles: :thumbsup: :sparkles:
:cookie: 240 | @yaripl |http://www.freecodecamp.com/yaripl
Seah Eng Chye
@Seahchye
Sep 29 2017 12:08
Hello,
anyone knows how to split multidimensional arrays into sub-arrays?
heroiczero
@heroiczero
Sep 29 2017 12:11
@Seahchye so you want to split each array in a multidimensional array to its own array?
Seah Eng Chye
@Seahchye
Sep 29 2017 12:13
@heroiczero yes
Long Nguyen
@longnt80
Sep 29 2017 12:14
@ericmiller777 can you make an example of what you want? Just something simple

@heroiczero

so you want to split each array in a multidimensional array to its own array?

and using es6

heroiczero
@heroiczero
Sep 29 2017 12:27
@Seahchye you could try using array.map() to manipulate the arrays in the multidimensional array. Why would you want to split it?
Seah Eng Chye
@Seahchye
Sep 29 2017 12:30
@heroiczero i am on the challenge 'Return Largest Number in Arrays'
heroiczero
@heroiczero
Sep 29 2017 12:31
@heroiczero multiDimensionalArray.map(function(array){return array.reduce(function(){})}); i would do something with map and reduce
Seah Eng Chye
@Seahchye
Sep 29 2017 12:34
thanks @heroiczero i will work on it
CamperBot
@camperbot
Sep 29 2017 12:34
seahchye sends brownie points to @heroiczero :sparkles: :thumbsup: :sparkles:
:star2: 1790 | @heroiczero |http://www.freecodecamp.com/heroiczero
Razvan
@razvanlikespizza
Sep 29 2017 14:06
  $(document).ready(function(){
    navigator.geolocation.getCurrentPosition(function(position) {
        const lat = position.coords.latitude;
        const long = position.coords.longitude;
      });
    $.getJSON("https://fcc-weather-api.glitch.me/api/current?lat=" + lat + "&lon=" + long, function(data) {

    });
});
// lat and long are NOT defined , but why?
Yaroslav
@YariPL
Sep 29 2017 14:42
does it really has sense to learn PHP in 2017?
Dylan
@dhcodes
Sep 29 2017 14:45
@YariPL why not? It's still a solid language, still powers a third of the web (via wordpress), has some cool new frameworks like Laravel, and has plenty of jobs at companies who are slow to change
depends on your reasons though
if you're just looking for a new language to learn for fun, I'd recommend python
Yaroslav
@YariPL
Sep 29 2017 14:47
@dhcodes now JS learning is more then enough for me :smile: just asking for the future. thanks
CamperBot
@camperbot
Sep 29 2017 14:47
yaripl sends brownie points to @dhcodes :sparkles: :thumbsup: :sparkles:
:star2: 1833 | @dhcodes |http://www.freecodecamp.com/dhcodes
Dylan
@dhcodes
Sep 29 2017 14:51
sure. @YariPL php is actually similar to js in many ways so learning js will help you learn php in some ways
Ene Catalin
@EneCatalin
Sep 29 2017 14:54
php is popular af
yes, it's a very good idea
don't listen to tards saying "java,python,php,whatever the f popular lang" is good as dead
they're popular and have been popular for ages for good reason
php is not dead nor is it dying
ehutchllew
@ehutchllew
Sep 29 2017 14:56
@YariPL I don't actually know PHP but my mentor at work suggested learning it to better understand creating web services - as opposed to using Java.
but again, I don't really know either of those 2, so someone could probably impart better insight.
Tai Jones
@taiJones00
Sep 29 2017 15:49
function booWho(bool) {
  // What is the new fad diet for ghost developers? The Boolean.
  if (bool == true || bool == false)
    {
      return true;
    }
  else
    {
      return false;
    }
}

booWho(null);
The only value that doesn't work is booWho(1)
Why is everything else working the way it should
Sorin Ruse
@sorinr
Sep 29 2017 16:47
@taiJones00 here some info about null
Nicolas Ramirez
@kamatheuska
Sep 29 2017 17:03
@quickspeedy I am on the same challenge :)
quickspeedy
@quickspeedy
Sep 29 2017 17:04
Awesome @kamatheuska It's fun doing this challenge. I am looking forward to code on twitch project.
Nicolas Ramirez
@kamatheuska
Sep 29 2017 17:06
Although I did a completly different thing hahaha...I got an idea, and though, that is cool! and I already have like 10 days trying to finish it. Not that cool. @quickspeedy
quickspeedy
@quickspeedy
Sep 29 2017 17:09
@kamatheuska Thanks! Ha and yeah some challenges can take days, but in the end, at least you learn something valuable. You can do it! ;)
CamperBot
@camperbot
Sep 29 2017 17:09
quickspeedy sends brownie points to @kamatheuska :sparkles: :thumbsup: :sparkles:
:cookie: 263 | @kamatheuska |http://www.freecodecamp.com/kamatheuska
Nicolas Ramirez
@kamatheuska
Sep 29 2017 17:30
@quickspeedy yeah, the hard way is the best way to learn, at least for me
Manish Giri
@Manish-Giri
Sep 29 2017 17:39
@heroiczero ty
CamperBot
@camperbot
Sep 29 2017 17:39
manish-giri sends brownie points to @heroiczero :sparkles: :thumbsup: :sparkles:
:star2: 1792 | @heroiczero |http://www.freecodecamp.com/heroiczero
Gil Alexandel
@gilalexandel
Sep 29 2017 17:45

Hello there!

Have anybody here use the Share Dialog API from Facebook?
I'm trying to implement it on my project as a share custom btn but can't get it

Manish Giri
@Manish-Giri
Sep 29 2017 18:04
@thekholm80 ty
CamperBot
@camperbot
Sep 29 2017 18:04
manish-giri sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1494 | @thekholm80 |http://www.freecodecamp.com/thekholm80
Stephen James
@sjames1958gm
Sep 29 2017 18:39
@taiJones00 == will coerce use ===
Mike Batista
@mbmontana
Sep 29 2017 18:59
I have to return a string in which the letters are 13 letters away in the alphabet from the original letter. "SERR CVMMN!" is supposed to return "FREE PIZZA!" My two main problems are that I can't return anything more than the first iteration of the for loop and also I don't know how to fill the parameters for String.fromCharCode(). Any thoughts?
function rot13(str) { // LBH QVQ VG!
  var num;
  var newNum;
  var arr = [];
  for (var i = 0; i < str.length; i++) {

   num =  str.charCodeAt(i);



     if (num >= 65 && num <=77) {
        newNum = num + 13;
      }

   if (num >= 78 && num <=90) {
     newNum = num - 13;
   }
    arr.push(newNum);
    return String.fromCharCode(arr);

  }


}

// Change the inputs below to test
rot13("SERR CVMMN!");
Christopher McCormack
@cmccormack
Sep 29 2017 19:08
@mbmontana don't return until outside your for loop then. Return is scoped to your function not your loop iteration
@mbmontana and it would behoove you to format your code with proper spacing so it's easier to read
Mike Batista
@mbmontana
Sep 29 2017 19:09
@cmccormack Any suggestions on where I can read about code spacing?
Christopher McCormack
@cmccormack
Sep 29 2017 19:10
@mbmontana for every level of scope tab in once. I prefer spacing myself, which is usually 2-4 spaces per tab
closing braces should left-align with the opening line
for ( ... ) { // no tabs
    if ( ... // 1 tab
        ....  // 2 tabs
    }  // 1 tab
}   // no tabs
@mbmontana also array isn't a number, so you'll want to loop over your array to build a new array of strings then join them
Kyle Holm
@thekholm80
Sep 29 2017 19:12
@mbmontana this is what i used to get an idea of how to format code: http://javascript.crockford.com/code.html
Christopher McCormack
@cmccormack
Sep 29 2017 19:15
You can paste your code into codepen and use the little dropdown in the JS section to format it for you, I believe it uses prettier
Yaroslav
@YariPL
Sep 29 2017 19:15
hi. how to write this ```` symbol?
korzo
@korzo
Sep 29 2017 19:20
@YariPL Are you on Windows?
Yaroslav
@YariPL
Sep 29 2017 19:20
yes
korzo
@korzo
Sep 29 2017 19:21
There is application "Character map"
@YariPL On Slovak keyboard it's AltGR + 7
piteto
@piteto
Sep 29 2017 19:22
^ that works on polish keyboard
Yaroslav
@YariPL
Sep 29 2017 19:23
but I need exactly that one because this example :
console.log(My name is ${myName}. My favorite city is ${myCity}.);
didn't work with '' only with ``
there no way to write it with keyboard without applications?
korzo
@korzo
Sep 29 2017 19:25
@YariPL
This application shows layout of characters
It's part of windows
@YariPL
But try top row (numbers) + Altgr key
It should be one of the number keys
piteto
@piteto
Sep 29 2017 19:26
AltGR + 7
korzo
@korzo
Sep 29 2017 19:29
@YariPL So it's two votes for Altgr + 7
You should definitely try it @piteto
piteto
@piteto
Sep 29 2017 19:29
```````````
works lol
łąż
along with the rest of the polish keys
Yaroslav
@YariPL
Sep 29 2017 19:33
so it is right Alt + 7?
it looks like I'm doing things completely wrong
piteto
@piteto
Sep 29 2017 19:35
Maybe you have a different keyboard layout installed? Polish Typists Keyboard, or Polish Programmer's Keyboard layout?
Windows + R
osk
press enter - on screen keyboard shows you all the characters available
Yaroslav
@YariPL
Sep 29 2017 19:37
programmers
piteto
@piteto
Sep 29 2017 19:38
it's above the tab key, left of the 1
Yaroslav
@YariPL
Sep 29 2017 19:39
``` @piteto thanks :)
CamperBot
@camperbot
Sep 29 2017 19:39
yaripl sends brownie points to @piteto :sparkles: :thumbsup: :sparkles:
:cookie: 168 | @piteto |http://www.freecodecamp.com/piteto
piteto
@piteto
Sep 29 2017 19:39
:clap:
Yaroslav
@YariPL
Sep 29 2017 19:39
@korzo also thanks for help)
CamperBot
@camperbot
Sep 29 2017 19:39
yaripl sends brownie points to @korzo :sparkles: :thumbsup: :sparkles:
piteto
@piteto
Sep 29 2017 19:39
:)
CamperBot
@camperbot
Sep 29 2017 19:39
:cookie: 556 | @korzo |http://www.freecodecamp.com/korzo
dilaniat
@dilaniat
Sep 29 2017 19:40
Hey guys! Can someone help me with something I'm stuck on? (it's probably super simple lol)
Yaroslav
@YariPL
Sep 29 2017 19:40
@piteto nie było łatwe :smile:
piteto
@piteto
Sep 29 2017 19:41
to nigdy nie jest łatwe :) (thanks google translate)
@dilaniat feel free to ask your question
korzo
@korzo
Sep 29 2017 19:42
@piteto where you from?
I thought you are from Poland
piteto
@piteto
Sep 29 2017 19:42
I'm from the USA
Yaroslav
@YariPL
Sep 29 2017 19:43
me too :D
piteto
@piteto
Sep 29 2017 19:43
I was a localization engineer for a while, got to know my keyboard layouts pretty well in that job
Yaroslav
@YariPL
Sep 29 2017 19:43
I won't write to you in Polish anymore :D
piteto
@piteto
Sep 29 2017 19:44
haha, I wish I could speak it!
Yaroslav
@YariPL
Sep 29 2017 19:48
I wish I could speak English fluently
Stephen James
@sjames1958gm
Sep 29 2017 19:59
@dilaniat ask away
dilaniat
@dilaniat
Sep 29 2017 20:07
Sorry, I'm trying to find a way to show you all my code but it's so long. I'm leaving school now and will come back in the chatroom when I get home. Thanks!
it's hard to show because it's about an image but i don't think you guys will be able to see it since the img is in a folder on my pc
Stephen James
@sjames1958gm
Sep 29 2017 20:19
@dilaniat You can use something like gist.github.com if there is a lot of code
Eric Miller
@ericmiller777
Sep 29 2017 23:13
Interesting question, lets say i have some code, that does an assortment of things, but then it calls another function, but if that function checks somthing, can i have it stop the first function mid way?
Kyle Holm
@thekholm80
Sep 29 2017 23:16
function firstFunction () {
  var thingToCheck = true;

  if (secondFunction(thingToCheck)) {
    // do all this if result is true
  }
}

function secondFunction(value) {  // must return boolean
  return value;
}
like that?
Eric Miller
@ericmiller777
Sep 29 2017 23:16
hmm
Kyle Holm
@thekholm80
Sep 29 2017 23:17
of course, you're probably going to want more complex stuff in there
Eric Miller
@ericmiller777
Sep 29 2017 23:18
@thekholm80 thank you
CamperBot
@camperbot
Sep 29 2017 23:18
ericmiller777 sends brownie points to @thekholm80 :sparkles: :thumbsup: :sparkles:
:star2: 1495 | @thekholm80 |http://www.freecodecamp.com/thekholm80
Eric Miller
@ericmiller777
Sep 29 2017 23:18
um
see i have my simon sequence
then if the player clicks on the wrong tile, i want it to stop
Kyle Holm
@thekholm80
Sep 29 2017 23:19
right
the simon game has a lot of moving pieces to keep track of
but you can do it
Eric Miller
@ericmiller777
Sep 29 2017 23:20
:P
@thekholm80 its a lot more complicated then I thought it would be
Kyle Holm
@thekholm80
Sep 29 2017 23:21
i believe i used a global variable of some sort, which i checked constantly before game actions, and that variable i'd change if the player made a wrong move
if i had to do it all over again i'm sure i'd do a lot different though. I dislike global variables when I can avoid them
Eric Miller
@ericmiller777
Sep 29 2017 23:27
I was just thinking that
but lets say
it comes back
just break?
Abubakar Sambo
@sastech
Sep 29 2017 23:29
Hello guys! 911
Ahmed Tarek
@ahmedtarek2134
Sep 29 2017 23:29

Hello People

Eric Miller
@ericmiller777
Sep 29 2017 23:29
hello?
Kyle Holm
@thekholm80
Sep 29 2017 23:29
@ericmiller777 i think it's easier to only execute the code if everything is okay, rather than trying to stop in the middle.
Abubakar Sambo
@sastech
Sep 29 2017 23:30
I'm trying to write a program that checks if a string is an isogram with js. I give up. Somebody pls help!
Kyle Holm
@thekholm80
Sep 29 2017 23:30
@ahmedtarek2134 :wave:
Ahmed Tarek
@ahmedtarek2134
Sep 29 2017 23:30
@thekholm80 how are you brother?
Kyle Holm
@thekholm80
Sep 29 2017 23:30
i'm good, long time no see
how's life?
Ahmed Tarek
@ahmedtarek2134
Sep 29 2017 23:31
as usual...school, homeworks...ugghhhh
Eric Miller
@ericmiller777
Sep 29 2017 23:31
idk what an isogram is
Kyle Holm
@thekholm80
Sep 29 2017 23:31
but just think when you're done it will be all worth it
Ahmed Tarek
@ahmedtarek2134
Sep 29 2017 23:31
on a side of things, I finally managed to learn Promises which allowed me to publish v1.0.0 of initior
oh man I am already dreaming about that day
I want to code full time
but no time to do so
Kyle Holm
@thekholm80
Sep 29 2017 23:32
you'll get there
and make millions
Abubakar Sambo
@sastech
Sep 29 2017 23:32
@ericmiller777 a word without repeating a letter
Ahmed Tarek
@ahmedtarek2134
Sep 29 2017 23:32
even when I am studying, I still think about how I am going to solve that problem in my code haha
Eric Miller
@ericmiller777
Sep 29 2017 23:34
i can think of a way to do it
its a bit convoluted tho
thats probably spelled wrong
Ahmed Tarek
@ahmedtarek2134
Sep 29 2017 23:35
@sastech why don't you split the word to each letter separately in an array and check for duplicates then remove them and keep only one?
piteto
@piteto
Sep 29 2017 23:36
@sastech A regular expression should be a good approach too
Eric Miller
@ericmiller777
Sep 29 2017 23:36
my way was the same but that way is better
@piteto how would you count tho? like to see how many duplicates?
Ahmed Tarek
@ahmedtarek2134
Sep 29 2017 23:37
@piteto regular expressions are good but you will need to test for 28 cases
a and a, b and b, c and c and so on
piteto
@piteto
Sep 29 2017 23:37
@ericmiller777 I may have missed if there's counting involved, the regex would return true/false if there are repeating letters
@ahmedtarek2134 Could we use \w?
Ahmed Tarek
@ahmedtarek2134
Sep 29 2017 23:38
/w will check for words in general
it can't figure out the letter
2 won't match \w but a, z, b, f all will match
piteto
@piteto
Sep 29 2017 23:38
function isIsogram (str) {
  return !/(\w).*\1/i.test(str);
}
Eric Miller
@ericmiller777
Sep 29 2017 23:39
This message was deleted
which you could probably use that anyway
Ahmed Tarek
@ahmedtarek2134
Sep 29 2017 23:41
function isIsogram(str){
  var chars = str.toLowerCase().split(''), found = {};
  for (var i=0,l=chars.length; i<l; i++){
    if (typeof found[chars[i]] === 'undefined')
      found[chars[i]] = true;
    else return false;
  }
  return true;
}
Abubakar Sambo
@sastech
Sep 29 2017 23:41
@ahmedtarek2134 the code is supposed to return true for words without duplicate letters when tested, & false for words with letters appearing more than once
Ahmed Tarek
@ahmedtarek2134
Sep 29 2017 23:41
I agree with the javascript approach more tbh
Eric Miller
@ericmiller777
Sep 29 2017 23:42
@piteto thanks for helping people
CamperBot
@camperbot
Sep 29 2017 23:42
ericmiller777 sends brownie points to @piteto :sparkles: :thumbsup: :sparkles:
:cookie: 170 | @piteto |http://www.freecodecamp.com/piteto
Eric Miller
@ericmiller777
Sep 29 2017 23:42
@ahmedtarek2134 i wouldve done that too but for some reason my first thought was to run it through an array of a string of letters and add from there lol
piteto
@piteto
Sep 29 2017 23:43
I'm more than happy to help - stuck on a calculator problem now, so procrastinating away :)
Eric Miller
@ericmiller777
Sep 29 2017 23:44
@ahmedtarek2134 thanks
CamperBot
@camperbot
Sep 29 2017 23:44
ericmiller777 sends brownie points to @ahmedtarek2134 :sparkles: :thumbsup: :sparkles:
:cookie: 584 | @ahmedtarek2134 |http://www.freecodecamp.com/ahmedtarek2134
Eric Miller
@ericmiller777
Sep 29 2017 23:44
@piteto im sure you can do it
Ahmed Tarek
@ahmedtarek2134
Sep 29 2017 23:45
@ericmiller777 my pleasure, ama go sleep now guys so yah goodnight :first_quarter_moon: