These are chat archives for FreeCodeCamp/HelpJavaScript

29th
Aug 2017
Ogundele Olumide
@Lumexralph
Aug 29 2017 00:29
@cmurphy580 check if javascript is not disabled in the browser settings
juni
@junipberry
Aug 29 2017 00:49
hi guys, I have a general question to ask. I n
I noticed when I use arr.shift within a function, I need to return the arr in a separate line after the .shift line
can anyone explain why this is
Coy Sanders
@coymeetsworld
Aug 29 2017 00:51
arr.shift returns the shifted item that you removed from the array, not the array
christopher clarke
@chrisdclarke
Aug 29 2017 00:54

hey guys... im having trouble.... im trying to get an alert box to come up once the button is pressed but its not working.. any ideas..? tx <form> <input type=text name=search value=Search>
<input type=submit onClick=myFunction() name=submit value=submit>
</form>

<script>
function myFunction(){
var search1=document.getElementById("search").value;
alert(search1);
}
</script>

Coy Sanders
@coymeetsworld
Aug 29 2017 00:55
there's no html element there with an id of search
christopher clarke
@chrisdclarke
Aug 29 2017 00:59
cool thanks....
the alerts reading undefined now though... do i have to stringify it?
hey.. . ya i had changed it to innerhtml... but back to value it works... thanks @coymeetsworld
CamperBot
@camperbot
Aug 29 2017 01:02
chrisdclarke sends brownie points to @coymeetsworld :sparkles: :thumbsup: :sparkles:
:star2: 2994 | @coymeetsworld |http://www.freecodecamp.com/coymeetsworld
juni
@junipberry
Aug 29 2017 01:23
what am I doing wrong here? I’m not returning the count of the char. what am I missing?
function countCharacter(str, char) {
  let reg = new RegExp(char, "gi");
  if (reg === undefined  || "0") {
    return (0);
  } else {
  return str.match(reg).length;
} 
}
Mai Thinh
@mthinh
Aug 29 2017 01:31
hey guys, ive just finished my calculator project,
pls check it out and give me some words
korzo
@korzo
Aug 29 2017 01:38
@junipberry You have error in if condition
@junipberry
function countCharacter(str, char) {
  let reg = new RegExp(char, "gi");
    console.log(reg);
  if (reg === undefined  || reg === "0") {
    return (0);
  } else {
  return str.match(reg).length;
} 
}
@mthinh clicking number after = give unexpected result
juni
@junipberry
Aug 29 2017 01:43
ah I see. opps I see what I missed in the condition there. ty @korzo. Is the console.log part necessary for it to return str.match(reg).length; later?
CamperBot
@camperbot
Aug 29 2017 01:43
junipberry sends brownie points to @korzo :sparkles: :thumbsup: :sparkles:
:cookie: 424 | @korzo |http://www.freecodecamp.com/korzo
korzo
@korzo
Aug 29 2017 01:43
@junipberry no :)
juni
@junipberry
Aug 29 2017 01:43
:smile:
got it, ty!
korzo
@korzo
Aug 29 2017 01:44
@junipberry I was trying to get undefined or "0" value
@mthinh 6-4= and then 2 shows 22
Gersho
@Gersho
Aug 29 2017 01:48
@mthinh i can keep pressing numbers until they go out of the calculator
juni
@junipberry
Aug 29 2017 01:52
@korzo its interesting bc before, I was passing all tests but the one where it counts the number of times the character occured. Now, its passing the count of character but not passing where it shows 0 for undefined and 0.
korzo
@korzo
Aug 29 2017 01:53
@junipberry Name of the challenge?
juni
@junipberry
Aug 29 2017 01:53
its not fcc
korzo
@korzo
Aug 29 2017 01:55
@junipberry when will call to constructor return undefined or "0" ?
@junipberry also str.match(reg) return null if not found, so it will throw error in your code
juni
@junipberry
Aug 29 2017 01:57
hmm I see, so should I include null within the condition
korzo
@korzo
Aug 29 2017 01:58
@junipberry Shouldn't be the condition after str.match(reg) ?
@junipberry
let ret = str.match(reg);
if (ret === null) ....
juni
@junipberry
Aug 29 2017 02:10
@korzo I put the condition the other way and its not passing anymore..
korzo
@korzo
Aug 29 2017 02:11
@junipberry Could you post instructions?
juni
@junipberry
Aug 29 2017 02:12
sure, its this:
Given a string input and a character, "countCharacter" returns the number of occurences of a given character in the given string.
Alexander Køpke
@alexanderkopke
Aug 29 2017 02:12
weird. I had always thought null would never be set by js but I see in the docs that match does use null if no match is found.
korzo
@korzo
Aug 29 2017 02:15
@moigithub It will throw error if character not found
Moisés Man
@moigithub
Aug 29 2017 02:16
( input.match(new RegExp(character, 'g')) || '' ).length
korzo
@korzo
Aug 29 2017 02:18
@junipberry
function countCharacter(str, char) {
     let reg = new RegExp(char, "g");
     let ret = str.match(reg);
     if (ret === null) {
        return 0;
     }  

    return ret.length;
}
Moisés Man
@moigithub
Aug 29 2017 02:23
function countCharacter(input, character) {
return input.split(character).length-1;
}
juni
@junipberry
Aug 29 2017 02:26
ohh that passes all but one.
Ogundele Olumide
@Lumexralph
Aug 29 2017 02:26
@alexanderkopke i don't understand
juni
@junipberry
Aug 29 2017 02:26
for when its an empty string
korzo
@korzo
Aug 29 2017 02:27
@junipberry You should test for empty string at the start of the function
Moisés Man
@moigithub
Aug 29 2017 02:30
function countCharacter(input, character) {
   var count = 0;
   for( var i = 0; i<input.length; i++ ){
          if( input[i] === character ){
                count++;
         }
   }
   return count;
}
return [...input].reduce((a,b)=>{
    if(b=== character) return a+1;
     return a;
},0);
boored :P
juni
@junipberry
Aug 29 2017 02:35
don’t think that is it..
Ogundele Olumide
@Lumexralph
Aug 29 2017 02:37
@moigithub i just love what map, reduce, forEach can do for you at times
korzo
@korzo
Aug 29 2017 02:38

@moigithub

function countCharacter(input, char) {
    return [...input].filter(a => a === char).length;
}

shorter

@junipberry then I think you didn't post all instructions
charles
@code9ja
Aug 29 2017 02:43
hi guys
I am on my challenge 201 I can't seem to figure out where the code is wrong

```function testLogicalOr(val) {
// Only change code below this line

{

}

if (val < 20 || val > 10) {
return "Outside";
}

// Only change code above this line
return "inside";
}

// Change this value to test
testLogicalOr(15);```

Ogundele Olumide
@Lumexralph
Aug 29 2017 02:44
@code9ja hey bro!
John
@AnonymousLords
Aug 29 2017 02:44
@rmdawson71 thanks :point_up: August 28, 2017 12:07 AM
CamperBot
@camperbot
Aug 29 2017 02:44
anonymouslords sends brownie points to @rmdawson71 :sparkles: :thumbsup: :sparkles:
:cookie: 299 | @rmdawson71 |http://www.freecodecamp.com/rmdawson71
charles
@code9ja
Aug 29 2017 02:45
this is the challenge title - Comparisons with the Logical Or Operator
John
@AnonymousLords
Aug 29 2017 02:45
So guys, why is arr.split not a function?
Ogundele Olumide
@Lumexralph
Aug 29 2017 02:45
@code9ja what is the instruction?
charles
@code9ja
Aug 29 2017 02:45
@Lumexralph hi
John
@AnonymousLords
Aug 29 2017 02:45

 function destroyer(arr) {
      var itemCompare = arr.split(arr.length, -2)
      return itemCompare;
 }
 destroyer([1, 2, 3, 1, 2, 3], 2, 3);
Not a function
TypeError: arr.split is not a function
    at destroyer:3:28
    at eval:6:1
    at eval
    at r.<anonymous>
Destroyer is
Ogundele Olumide
@Lumexralph
Aug 29 2017 02:46
@AnonymousLords because you only reference the method by doing that, more like accessing it as a property of an object
charles
@code9ja
Aug 29 2017 02:46
I am expected to make it return outside and inside. so far I have achieved the outside
Ogundele Olumide
@Lumexralph
Aug 29 2017 02:46
@AnonymousLords arr.split(separator)
John
@AnonymousLords
Aug 29 2017 02:46
i went from the length of it -2
so its 2,3
Im still confused on why its not a fucntion
korzo
@korzo
Aug 29 2017 02:47
@AnonymousLords split is method of string, not array
John
@AnonymousLords
Aug 29 2017 02:47
Okay
Humm, what to use for array then,
korzo
@korzo
Aug 29 2017 02:48
slice or substr
Ogundele Olumide
@Lumexralph
Aug 29 2017 02:48
@AnonymousLords what @korzo said is true
John
@AnonymousLords
Aug 29 2017 02:49
thanks @Lumexralph @korzo
CamperBot
@camperbot
Aug 29 2017 02:49
anonymouslords sends brownie points to @lumexralph and @korzo :sparkles: :thumbsup: :sparkles:
:cookie: 425 | @korzo |http://www.freecodecamp.com/korzo
:star2: 2051 | @lumexralph |http://www.freecodecamp.com/lumexralph
John
@AnonymousLords
Aug 29 2017 02:49

 function destroyer(arr) {
      var itemCompare = arr.slice( -2)
      return itemCompare;
 }
 destroyer([1, 2, 3, 1, 2, 3], 2, 3);
=> [ 2, 3 ]
Ogundele Olumide
@Lumexralph
Aug 29 2017 02:49
@code9ja i don't know the challenge just want to know the instructions
korzo
@korzo
Aug 29 2017 02:50
@AnonymousLords you have to slice arguments object at first, not arr
@AnonymousLords but arguments is not array, either use Array.prototype.slice.call , or spread operator ...arguments
charles
@code9ja
Aug 29 2017 02:51
@Lumexralph oh ok. this is the Instructions
Combine the two if statements into one statement which returns "Outside" if val is not between 10 and 20, inclusive. Otherwise, return "Inside".
the challenge is - Comparisons with the Logical Or Operator
Ogundele Olumide
@Lumexralph
Aug 29 2017 02:52
@AnonymousLords array-like arguments object will help but I think it's deprecated you can do ...arr to get all the arguments passed to the destroyer function
korzo
@korzo
Aug 29 2017 02:52
@code9ja you have it opposite
charles
@code9ja
Aug 29 2017 02:52
@korzo really
I just switched it. I had it the other way round earlier
korzo
@korzo
Aug 29 2017 02:53
@code9ja
if val is not between 10 and 20
if (val < 20 || val > 10) {
@Lumexralph It's not deprecated
John
@AnonymousLords
Aug 29 2017 02:55
@korzo ?
charles
@code9ja
Aug 29 2017 02:55
@k thats exactly what I have
John
@AnonymousLords
Aug 29 2017 02:56
and guys i'm doing the https://www.freecodecamp.org/challenges/seek-and-destroy challenge, how do i check if teh item is not in the array?
Ogundele Olumide
@Lumexralph
Aug 29 2017 02:56
@code9ja if(val <= 10 || val >= 20) return "Outside"
korzo
@korzo
Aug 29 2017 02:56
@code9ja Yes, and it's wrong.
I put it together, instruction and your code for you to see it's wrong
charles
@code9ja
Aug 29 2017 02:57
@Lumexralph let me try
@korzo oh ok
John
@AnonymousLords
Aug 29 2017 02:57
Guys how to check if a item is not in the array
destroyer([1, 2, 3, 1, 2, 3], 3);
korzo
@korzo
Aug 29 2017 02:58
@AnonymousLords
Slice arguments from position 1
loop over arr and test if element from arr is in the rest of arguments
John
@AnonymousLords
Aug 29 2017 02:59
?
DCube
@DeshdeepDivakar
Aug 29 2017 02:59
@AnonymousLords Use lodash - https://lodash.com/docs/4.17.4#find
John
@AnonymousLords
Aug 29 2017 02:59
Im trying to get the item outside the array
korzo
@korzo
Aug 29 2017 03:00
@AnonymousLords var h = Array.prototype.slice.call(arguments, 1);
Ogundele Olumide
@Lumexralph
Aug 29 2017 03:00
@DeshdeepDivakar would you suggest using a library or getting the basics done first? lodash is awesome though
@AnonymousLords you can go about it in many ways, you can use indexOf and many other methods
charles
@code9ja
Aug 29 2017 03:02
@Lumexralph @korzo Its now returning inside but not passing me
John
@AnonymousLords
Aug 29 2017 03:02
How would i do it with indexOf?
DCube
@DeshdeepDivakar
Aug 29 2017 03:02
@Lumexralph Apologies, i would definitely sort the basics first. I am new to this channel didn’t realised the motive is different
John
@AnonymousLords
Aug 29 2017 03:02
The lodash, which lone would i use?
korzo
@korzo
Aug 29 2017 03:03

@code9ja

if val is not between 10 and 20

It reads val is more than 20 or val is less then 10

Turn it into the code now
Ogundele Olumide
@Lumexralph
Aug 29 2017 03:04
@DeshdeepDivakar i think we learn easily other technologies or libraries when we know what it was built on, cos libraries or frameworks will come and go but when we have the basics or foundation we're not bothered
charles
@code9ja
Aug 29 2017 03:05
this is my new code if (val <= 10 || val >= 20) {
return "Outside";
John
@AnonymousLords
Aug 29 2017 03:05
@DeshdeepDivakar which lodash would i use
DCube
@DeshdeepDivakar
Aug 29 2017 03:05
@Lumexralph I agree
John
@AnonymousLords
Aug 29 2017 03:05
and @korzo im confused
Ogundele Olumide
@Lumexralph
Aug 29 2017 03:05
@AnonymousLords check that link it'll point you in the way it works https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf
korzo
@korzo
Aug 29 2017 03:06
@code9ja I think it should be without =
DCube
@DeshdeepDivakar
Aug 29 2017 03:06
@AnonymousLords sorry, for any confusions mate
charles
@code9ja
Aug 29 2017 03:06
@korzo is this correct - if (val <= 10 || val >= 20) {
return "Outside";
@korzo oh ok
@korzo same thing. returns inside does not pass me
John
@AnonymousLords
Aug 29 2017 03:08
@DeshdeepDivakar it can comapre
This is a exmaple i have of indexOf

function mutation(arr) {
 arr[0] = arr[0].toLowerCase();
 arr[1] = arr[1].toLowerCase();

  var loop = true; 

  for (var i = 0; i < arr[1].length; i++) {
    var broken2 = arr[1].split("");
    if (arr[0].indexOf(broken2[i]) === -1) {
        return false;
    }

  }
return true;
}


mutation(["hello", "hey"]);
charles
@code9ja
Aug 29 2017 03:08
@Lumexralph @korzo could be a bug
John
@AnonymousLords
Aug 29 2017 03:08
SO it can comapre to items
Now how to make it so i can find items outside of a array
/like make a new array out of teh items not in teh array
korzo
@korzo
Aug 29 2017 03:09
@AnonymousLords I posted code for this
charles
@code9ja
Aug 29 2017 03:09
@Lumexralph @korzo if (val < 10 || val > 20) { return "Outside";
John
@AnonymousLords
Aug 29 2017 03:09
@korzo ik but it doesnt make any sense, and how do i put it into my code?
korzo
@korzo
Aug 29 2017 03:09
@code9ja post all code
Ogundele Olumide
@Lumexralph
Aug 29 2017 03:10
@code9ja what if val is 10 or 20 ?
@code9ja instruction said inclusive
@code9ja means including 10 and 20
charles
@code9ja
Aug 29 2017 03:10

@korzo ```function testLogicalOr(val) {
// Only change code below this line

{

}

if (val < 10 || val > 20) {
return "Outside";
}

// Only change code above this line
return "inside";
}

// Change this value to test
testLogicalOr(19);```

Ogundele Olumide
@Lumexralph
Aug 29 2017 03:11
@code9ja one thing what's the exact string asked to return?
korzo
@korzo
Aug 29 2017 03:11
@code9ja it should be return "Inside";
Uppercase I
charles
@code9ja
Aug 29 2017 03:12
@Lumexralph Yes I tried your suggestion using <= || >=. but returned inside did not passing me
@korzo that did it. It was a typo all this while
John
@AnonymousLords
Aug 29 2017 03:13
charles
@code9ja
Aug 29 2017 03:13
Thanks @korzo
CamperBot
@camperbot
Aug 29 2017 03:13
code9ja sends brownie points to @korzo :sparkles: :thumbsup: :sparkles:
:cookie: 426 | @korzo |http://www.freecodecamp.com/korzo
John
@AnonymousLords
Aug 29 2017 03:13
still confused @korzo
charles
@code9ja
Aug 29 2017 03:13
thanks @Lumexralph
CamperBot
@camperbot
Aug 29 2017 03:13
code9ja sends brownie points to @lumexralph :sparkles: :thumbsup: :sparkles:
:star2: 2052 | @lumexralph |http://www.freecodecamp.com/lumexralph
korzo
@korzo
Aug 29 2017 03:13
@AnonymousLords
get rest of the arguments
var rest = Array.prototype.slice.call(arguments, 1);
loop over arr
for() or arr.filter
test if element from arr is in rest
rest.indexOf(arr[i]) === -1
@AnonymousLords Do you want me to post whole code?
John
@AnonymousLords
Aug 29 2017 03:14
Yeha i need a example
korzo
@korzo
Aug 29 2017 03:14
@AnonymousLords
function destroyer(arr) {
  // Remove all the values
  var needles = Array.prototype.slice.call(arguments, 1);
  return arr.filter(function(el) {    
    return needles.indexOf(el) === -1;
  });
}

destroyer([1, 2, 3, 1, 2, 3], 2, 3);
Ogundele Olumide
@Lumexralph
Aug 29 2017 03:14
@code9ja wanted to be sure, which test returned inside ?
John
@AnonymousLords
Aug 29 2017 03:14
i just want to get teh numbers not in a array and push them into another
Ogundele Olumide
@Lumexralph
Aug 29 2017 03:15
@code9ja you're welcome
John
@AnonymousLords
Aug 29 2017 03:16
@korzo my code so far
(i dont want to completely copy yours, just intergrade it into mine)
function destroyer(arr) {

var itemCompare = Array.prototype.slice.call(arguments, 1);

return arr.filter(function(item) {
    if (item !== itemCompare[0]  && item !== itemCompare[1]) {
        return item;
}
});
}

destroyer([1, 2, 3, 1, 2, 3], 2, 3, 5);
It get 1,1 instead of 1
korzo
@korzo
Aug 29 2017 03:17
@AnonymousLords and what if there is 7 arguments?
John
@AnonymousLords
Aug 29 2017 03:17
destroyer([3, 5, 1, 2, 2], 2, 3, 5) should return [1].
korzo
@korzo
Aug 29 2017 03:17
Will you compare ... item !== itemCompare[7]
Guderian Raborg
@hypercuber
Aug 29 2017 03:17
What is the best way to make multiple spheres in three.js? I think it is using object but idk how.
John
@AnonymousLords
Aug 29 2017 03:17
@korzo ohhh
so i need a for loop?
korzo
@korzo
Aug 29 2017 03:19
Use indexOf of include
Ogundele Olumide
@Lumexralph
Aug 29 2017 03:19
@hypercuber OOP will help there I think though I don't know how to use three.js
korzo
@korzo
Aug 29 2017 03:19
or second loop, but it make things complicated
John
@AnonymousLords
Aug 29 2017 03:20
(var i = 0; i < itemCompare.length; i++)
anything wrong with this loop?
korzo
@korzo
Aug 29 2017 03:21
@AnonymousLords if it's inside for (var j = 0; j < arr.length; j++) then it's ok
John
@AnonymousLords
Aug 29 2017 03:22
thsi si my current code
function destroyer(arr) {



var itemCompare = Array.prototype.slice.call(arguments, 1);

for (var i = 0; i < itemCompare.length; i++) {

return arr.filter(function(item) {
    if (item !== itemCompare[i]) {
        return item;
}
}
});
}

destroyer([1, 2, 3, 1, 2, 3], 2, 3, 5);

unknown: Unexpected token (4:47)
  2 | function destroyer(arr) {
  3 |     
> 4 |     for (var i = 0; i < itemCompare.length, i++) {
    |                                                ^
  5 |     
  6 | var itemCompare = Array.prototype.slice.call(arguments, 1);
  7 |
korzo
@korzo
Aug 29 2017 03:23
@AnonymousLords wrong. It will filter only first element from itemCompare
John
@AnonymousLords
Aug 29 2017 03:23
im trying to check if it is equal to itemcompare's number
okay
korzo
@korzo
Aug 29 2017 03:24
@AnonymousLords But you are returning it inside first iteration
John
@AnonymousLords
Aug 29 2017 03:24
so will i push it into a new array>
okay i changed a little

function destroyer(arr) {

  var arrTwo = [];

var itemCompare = Array.prototype.slice.call(arguments, 1);

for (var i = 0; i < itemCompare.length; i++) {

return arr.filter(function(item) {
    if (item !== itemCompare[i]) {
        arrTwo.push(item)
}
}
});
}

destroyer([1, 2, 3, 1, 2, 3], 2, 3, 5);
Ogundele Olumide
@Lumexralph
Aug 29 2017 03:26
@korzo i meant the function object property Function.argument, arguments is not deprecated as you said earlier
messed that up
John
@AnonymousLords
Aug 29 2017 03:27
@AnonymousLord
unknown: Unexpected token (15:0)
  13 | }
  14 | }
> 15 | });
     | ^
  16 | }
  17 | 
  18 | destroyer([1, 2, 3, 1, 2, 3], 2, 3, 5);
Claudio Restifo
@Marmiz
Aug 29 2017 03:31
@AnonymousLords the ) should go on the } above I think.
It's hard to read it with that indentation
John
@AnonymousLords
Aug 29 2017 03:32
okay
Claudio Restifo
@Marmiz
Aug 29 2017 03:32
} // if 
}) //filter
}  //for
} //destroyer
John
@AnonymousLords
Aug 29 2017 03:32
okay
korzo
@korzo
Aug 29 2017 03:33
@Lumexralph Yeah, it happens to everybody
John
@AnonymousLords
Aug 29 2017 03:40
thanks @korzo @Marmiz @Lumexralph
CamperBot
@camperbot
Aug 29 2017 03:40
anonymouslords sends brownie points to @korzo and @marmiz and @lumexralph :sparkles: :thumbsup: :sparkles:
:warning: anonymouslords already gave korzo points
:warning: anonymouslords already gave lumexralph points
:star2: 1033 | @marmiz |http://www.freecodecamp.com/marmiz
Guderian Raborg
@hypercuber
Aug 29 2017 04:11
@Lumexralph Thanks anyways. Now a little problem I have is I can change TrackballControls.js file with Atom but not in codepen. Here is my code: https://codepen.io/hypercuber/pen/OjBZQK?editors=0010
CamperBot
@camperbot
Aug 29 2017 04:11
hypercuber sends brownie points to @lumexralph :sparkles: :thumbsup: :sparkles:
:star2: 2053 | @lumexralph |http://www.freecodecamp.com/lumexralph
Ken Haduch
@khaduch
Aug 29 2017 04:16
@hypercuber - it looks like you are linking to TrackballControls.js in your project - is it that you cannot update the file from where you are loading it? The URL that you have there - //crival.net/3d/js/controls/TrackballControls.js? If you can copy the entire text of that JS file to another CodePen pen in your workspace (with your edits) and save it in the JS panel, you can then put a link to that new CodePen pen in your JS panel settings and it will pull the JS from it. That's a CodePen feature. Maybe it will help you? I know that it will make a redundant copy of the code, but if you need to have a change for your project, that's one way to isolate the code into a separate pen and use it.
Ken Haduch
@khaduch
Aug 29 2017 04:22
@hypercuber - there is help on adding other pens as resources here: https://blog.codepen.io/documentation/editor/adding-external-resources/ just in case it is helpful to you.
Guderian Raborg
@hypercuber
Aug 29 2017 04:52
@khaduch Oh, nice. Thanks a lot.
CamperBot
@camperbot
Aug 29 2017 04:52
hypercuber sends brownie points to @khaduch :sparkles: :thumbsup: :sparkles:
:star2: 3248 | @khaduch |http://www.freecodecamp.com/khaduch
Aimee
@bestAimee
Aug 29 2017 07:06
hello i want to allocate parameter of other function ,what should i do ?
Markus Kiili
@Masd925
Aug 29 2017 07:08
@bestAimee Not sure what you mean. Posting some code and explaining more might help.
Aimee
@bestAimee
Aug 29 2017 07:10
is that i want to allocate the parameter,but parameter is not global variable
@Masd925
Markus Kiili
@Masd925
Aug 29 2017 07:10
@bestAimee Still not sure what you mean by allocating here.
Aimee
@bestAimee
Aug 29 2017 07:14
er.. my english is not good .i want to use the variables,but it is not the global,it is defined in a function
@Masd925
Claudio Restifo
@Marmiz
Aug 29 2017 07:15
@bestAimee you probably means passing variables from a function to another?
if so the return value of a function can be used:
function add (a,b) {
  return a+b;
}

function times() {
  // call add and get its return value of 3 and return 3 * 2
  return add(1,2) * 2;
}

times() // return 6
Markus Kiili
@Masd925
Aug 29 2017 07:15
@bestAimee Parameters can only be used inside the function in question.
Aimee
@bestAimee
Aug 29 2017 07:18
@Marmiz yes you are right,but my other function is not only defined the variables,so i don't know how todo
Claudio Restifo
@Marmiz
Aug 29 2017 07:21
@bestAimee can you post an example? It's kind of vague to reply otherwise
Ogundele Olumide
@Lumexralph
Aug 29 2017 07:22
@Masd925 Good morning
Markus Kiili
@Masd925
Aug 29 2017 07:22
@Lumexralph Morning. How has the day started?
Ogundele Olumide
@Lumexralph
Aug 29 2017 07:24
@Masd925 started well so far, almost ran late for work was up most of the night writing tests. How's the progress with the project?
Markus Kiili
@Masd925
Aug 29 2017 07:25
@Lumexralph What tests?
Aimee
@bestAimee
Aug 29 2017 07:26
image.png
i want to use oA1,and oA2
Claudio Restifo
@Marmiz
Aug 29 2017 07:28
@bestAimee where? and how?
Markus Kiili
@Masd925
Aug 29 2017 07:28
@Lumexralph Need to refresh java things first for a few weeks and then make something. I made my first problem-free 6 minute breath hold yesterday :sparkles:
Aimee
@bestAimee
Aug 29 2017 07:29
in another function i want to oA1and oA2 display none;
@Marmiz
Claudio Restifo
@Marmiz
Aug 29 2017 07:37

@bestAimee you don't need that variable. That's an element created, so if later on you want to select it back I suggest you using getElement...
Easiest method is to assign it an ID, same you did withclassName

insert() {
var myEl = document.createElement('li');
myEl.id = 'customID';
}

remove () {
 var myEl = document.getElementById('customID');
// do whatever you want with it
}

Make sure the element is created before selecting it

Aimee
@bestAimee
Aug 29 2017 07:41
ok ,i see .thank you @Marmiz
CamperBot
@camperbot
Aug 29 2017 07:41
bestaimee sends brownie points to @marmiz :sparkles: :thumbsup: :sparkles:
:star2: 1034 | @marmiz |http://www.freecodecamp.com/marmiz
Markus Kiili
@Masd925
Aug 29 2017 07:47
@bestAimee @Marmiz 's example uses the .id property of the element object. It is an example of a reflected property. Setting it changes the element id attribute value and getting it returns the value of the id attribute. It is not always like that. For example .value property is not a reflected property. Attribute value is always the initial value, but the property holds the current value (for example a value that the user changes with written input).
Aimee
@bestAimee
Aug 29 2017 07:49
so how to do ?
@Masd925
Ogundele Olumide
@Lumexralph
Aug 29 2017 07:54
@Masd925 awesome.... :+1:
Kelechi Chinaka
@ke1echi
Aug 29 2017 08:02
:wave: @Lumexralph
Long Nguyen
@longnt80
Aug 29 2017 08:48
I have a function to check whether an object is empty or not. I used for in to loop but I didn't have to use if(obj.hasOwnProperty(key)) in the loop and it still work. Why? And is that ok?
Here's the code: https://repl.it/K2v0/3
Markus Kiili
@Masd925
Aug 29 2017 08:50
@longnt80 Why not just return Object.keys(obj).length===0;
@longnt80 for...in loop loops keys of the given object, so they always exist on the object (plain objects don't inherit any enumerable properties).
Long Nguyen
@longnt80
Aug 29 2017 08:52
@Masd925 so if(obj.hasOwnProperty(key)) is not needed?
Markus Kiili
@Masd925
Aug 29 2017 08:52
@longnt80 That is correct. The loop block only executes if there are keys.
But somewhat confusing use of a loop.
Long Nguyen
@longnt80
Aug 29 2017 08:53
@Masd925 I see
@Masd925 thank you
CamperBot
@camperbot
Aug 29 2017 08:54
longnt80 sends brownie points to @masd925 :sparkles: :thumbsup: :sparkles:
:star2: 4444 | @masd925 |http://www.freecodecamp.com/masd925
Alexander Domikov
@AlexanderDom
Aug 29 2017 08:56
Hello everybody, i have a little question about jquery
i seem to miss something with .on() method
i've been using it for years now, and it juste simply doesnt work since several days. For exemple (my jquery version is 3) if i try $("p").on("hover", function(){ }) it doesnt work but $("p").hover(function(){}) works perfectly
Markus Kiili
@Masd925
Aug 29 2017 09:02
@AlexanderDom I think that $(selector).hover(handlerInOut); is a shorthand for $( selector ).on( "mouseenter mouseleave", handlerInOut );
Alexander Domikov
@AlexanderDom
Aug 29 2017 09:03
ok i gonna try it
Markus Kiili
@Masd925
Aug 29 2017 09:05
@AlexanderDom So shortly put, there is no JS hover event to bind to.
Alexander Domikov
@AlexanderDom
Aug 29 2017 09:05
thanks @Masd925 other question, how can i add an event handler only once for mobile or desktop, for exemple now if i resize for mobile size on click i have many console.logs
CamperBot
@camperbot
Aug 29 2017 09:05
alexanderdom sends brownie points to @masd925 :sparkles: :thumbsup: :sparkles:
:star2: 4445 | @masd925 |http://www.freecodecamp.com/masd925
Alexander Domikov
@AlexanderDom
Aug 29 2017 09:06
that on resize if it's mobile size somehow check does my element has something attached for click event already, not to add more
Markus Kiili
@Masd925
Aug 29 2017 09:08
@AlexanderDom Do you mean how to do something at the end of resize?
Blauelf
@Blauelf
Aug 29 2017 09:09
@AlexanderDom What's the problem? Do you
  1. attach multiple listeners (or same listener multiple times), or
  2. do you just see many resize events fired on the same listener?
Alexander Domikov
@AlexanderDom
Aug 29 2017 09:11
@Blauelf if you look at my page, if you resize for mobile size, and then click, you have several console.log so yes same listener several times. @Masd925 yes i saw vanilla debounce function for this
so surely i need to add once resize is off and check if its already been added
Blauelf
@Blauelf
Aug 29 2017 09:12
@AlexanderDom Looks like you attach same listener each time.
Yvonne
@yvonne6344
Aug 29 2017 09:12
Q:Sift through Text with Regular Expressions
I edit my code => var expression = /and/gi;
result return [object Object]
Blauelf
@Blauelf
Aug 29 2017 09:12
So now I've got same listener attached 25 times...
Alexander Domikov
@AlexanderDom
Aug 29 2017 09:18
seems to work with several booleans https://codepen.io/AlexanderDom/pen/gxBVzJ :)
Blauelf
@Blauelf
Aug 29 2017 09:18
@AlexanderDom Removing all the listeners each time might work, like
var sizeCheck = function(target){
  $(target).off('mouseenter mouseleave', desktop);
  $(target).off('click', mobile);
  desktopBoolean = window.matchMedia("(min-width:768px)").matches;
  if(desktopBoolean) {
    $(target).on("mouseenter mouseleave", desktop); 
  } else {
    $(target).on('click', mobile);
  }
}
Alexander Domikov
@AlexanderDom
Aug 29 2017 09:20
@Blauelf surely your version is better :) thanks for short version, gonna try it
CamperBot
@camperbot
Aug 29 2017 09:20
:star2: 4585 | @blauelf |http://www.freecodecamp.com/blauelf
alexanderdom sends brownie points to @blauelf :sparkles: :thumbsup: :sparkles:
Blauelf
@Blauelf
Aug 29 2017 09:20
Oh, wow. Domstein's Monster. Most of those booleans probably aren't necessary at all.
Alexander Domikov
@AlexanderDom
Aug 29 2017 09:23
but i don't remove, and add on each resize :)
only check for booleans
Markus Kiili
@Masd925
Aug 29 2017 09:29
@AlexanderDom It is also possible to target the end of resizing and perhaps do some checks only then.
Alexander Domikov
@AlexanderDom
Aug 29 2017 09:30
@Masd925 with something like this https://davidwalsh.name/javascript-debounce-function ?
// Returns a function, that, as long as it continues to be invoked, will not
// be triggered. The function will be called after it stops being called for
// N milliseconds. If `immediate` is passed, trigger the function on the
// leading edge, instead of the trailing.
function debounce(func, wait, immediate) {
    var timeout;
    return function() {
        var context = this, args = arguments;
        var later = function() {
            timeout = null;
            if (!immediate) func.apply(context, args);
        };
        var callNow = immediate && !timeout;
        clearTimeout(timeout);
        timeout = setTimeout(later, wait);
        if (callNow) func.apply(context, args);
    };
};
Markus Kiili
@Masd925
Aug 29 2017 09:32
@AlexanderDom There are some simpler examples, but that might have some benefits over them, not sure:
function resizedw(){
    // Haven't resized in 100ms!
}

var doit;
window.onresize = function(){
  clearTimeout(doit);
  doit = setTimeout(resizedw, 100);
};
EpicTriffid
@EpicTriffid
Aug 29 2017 10:48

Hi all. Getting myself a little confused here with something that should be fairly simple. Im working on Sorted Union, and trying to dump all my numbers into a single array for me to then sort through a remove duplicates. This is my current code.

function uniteUnique(arr) {
  var finalArr = [];
  var conCatArr = [];
  var x;
  for (x in arr) {
    conCatArr.push(arr[x]);
  }
  return conCatArr;
}

uniteUnique([1, 3, 2], [5, 2, 1, 4], [2, 1]);

Now I tried initially nesting a couple for loops, but then realised that the example is not an array within an array, so I figured the for...in loop should working for going through each element and pushing it to conCatArr. Is my thinking right here?

This is only very early in the code as well, so I realise its incomplete
Markus Kiili
@Masd925
Aug 29 2017 10:57
@EpicTriffid Array.prototype.concat.apply([],arguments) will concat any number of passed arguments into one array. Another way is to loop the array-like arguments object and use .concat().
So, arr only holds the first passed array, not all of them.
Markus Kiili
@Masd925
Aug 29 2017 11:03
arr is the same as arguments[0] and on that function call it is [1,3,2]. arguments[1] is [5,2,1,4] and arguments[2] is [2,1].
Ashok Bakthavathsalam
@kgashok
Aug 29 2017 11:17

I have a JS program as follows:

I am trying to develop a bookmarklet. The purpose of the bookmarklet is to display the URL of both the current tab and the new tab that was launched as a result of a window.open call. To simplify things, assume that the launcher.com launches a random URL to visit.

function getBothURLs() { 
        var currentURL, newWin;

        function launchNew () {
            currentURL = window.location.href; 
            newWin     = window.open("https://www.launcher.com");
        }

        launchNew();
        alert(currentURL); 
        alert(newWin.location.href); // displays 'about:blank'
    }

I am unable to get the URL of the newly launched tab. The alert() (at the very end of the function below) does not correctly display the newly launch tab's URL; instead it displays

 about:blank

When I was troubleshooting this within the Chrome console, I moved the definition of var currentURL, newWin to outside the scope of the getTwoURLs() function. When I invoked the function getBothURLs() from within the console, both currentURL and newWin had valid data.

How should the function getBothURLs() be modified to achieve the desired purpose?

Slitherings
@Slitherings
Aug 29 2017 11:34

Find the Longest Word in a String
Project

function findLongestWord(str) {
  return str.split(" ").join().split(",").length;  
}

findLongestWord("The quick brown fox jumped over the lazy dog");

So far in the code i haven't really made much progress i know what i have to do but i dont know the steps to take towards writing the code,
I know for sure i will need to split the words in the sentence into each individual arrays, which i did to a certain degree.. but im pretty sure that i will also need to use a if/else statement to filter the less number of letters in each individual array. If anyone can demonstrate how to create the if/else function for this code it would help me a ton.. Or if you have any other simple way to find the longest length let me know. Thanks!

CamperBot
@camperbot
Aug 29 2017 11:34
find the longest word in a stringprojectfunction findlongestwordstr return strsplit joinsplitlength findlongestwordthe quick brown fox jumped over the lazy dogso far in the code i havent really made much progress i know what i have to do but i dont know the steps to take towards writing the codei know for sure i will need to split the words in the sentence into each individual arrays which i did to a certain degree but im pretty sure that i will also need to use a ifelse statement to filter the less number of letters in each individual array if anyone can demonstrate how to create the ifelse function for this code it would help me a ton or if you have any other simple way to find the longest length let me know thanks
nothing found
Markus Kiili
@Masd925
Aug 29 2017 11:34
@Slitherings You need to somehow loop or iterate the array of words and figure out the longest word.
Slitherings
@Slitherings
Aug 29 2017 11:35
@Masd925 would i use a for loop or if/else
Markus Kiili
@Masd925
Aug 29 2017 11:36
@Slitherings For loop is fine. You could have a variable that holds the longest word length found so far and compare that with the length of the looped word.
Slitherings
@Slitherings
Aug 29 2017 11:37
@Masd925 Thanks for giving me some tips, the challenges are really giving me any leads which isnt a bad thing its teaching me to actually look for stuff online and try to teach myself
CamperBot
@camperbot
Aug 29 2017 11:37
slitherings sends brownie points to @masd925 :sparkles: :thumbsup: :sparkles:
:star2: 4446 | @masd925 |http://www.freecodecamp.com/masd925
Markus Kiili
@Masd925
Aug 29 2017 11:38
@Slitherings :+1:
Slitherings
@Slitherings
Aug 29 2017 11:38
@Masd925 <3
Tiago Correia
@tiagocorreiaalmeida
Aug 29 2017 11:51
hello everyone
Slitherings
@Slitherings
Aug 29 2017 11:52
@Masd925
function findLongestWord(str) {
  for(var i = 0; i < str.length(); i++);{
    if(str.split(" ").join()){
      return str.length;
    }
    else{

    }
  }
}

findLongestWord("The quick brown fox jumped over the lazy dog");
Am i going somewhere in the right direction with this code or should i re-arrange somethings?
Markus Kiili
@Masd925
Aug 29 2017 11:52
@Slitherings Split the string first into an array of words. Then loop the elements.
Inga Vaiciakauskaite
@ingava
Aug 29 2017 11:53
@Slitherings no need for a semicolon after you close for loop condition
Slitherings
@Slitherings
Aug 29 2017 11:54
oh okay thanks guys @Masd925 @ingava
CamperBot
@camperbot
Aug 29 2017 11:54
slitherings sends brownie points to @masd925 and @ingava :sparkles: :thumbsup: :sparkles:
:cookie: 278 | @ingava |http://www.freecodecamp.com/ingava
:warning: slitherings already gave masd925 points
Markus Kiili
@Masd925
Aug 29 2017 11:54
@ingava :+1: that actually makes the loop block not execute at all.
Inga Vaiciakauskaite
@ingava
Aug 29 2017 11:56
@Slitherings also, str.length without () in the for loop condition
but yes, in general, you need to split this one string into an array with words and then do all the logic
Slitherings
@Slitherings
Aug 29 2017 11:57
@ingava yea, i got rid of that my code looks a little different but its still not doing what i want it to do, i might have to just look up a solution online and read the code line for line.
Inga Vaiciakauskaite
@ingava
Aug 29 2017 11:58
as @Masd925 advised
Slitherings
@Slitherings
Aug 29 2017 11:58
i got it where each invidiual word is in the array
but i dont know how to make it iterate through each word and find the longest one :/
Inga Vaiciakauskaite
@ingava
Aug 29 2017 11:58
@Slitherings I think you should try to do this yourself. Spend at least an hour trying to figure it out and only then look up the solution
@Slitherings split your sentence into an array with all those words and then check the length of all array items
Slitherings
@Slitherings
Aug 29 2017 12:00
it gives me 44
which is the length of each invidual word
but when i try to split it by the space it gives me 9 which is the number of words in the sentence
banana
@Like-Watermelon
Aug 29 2017 12:04
360截图--139202109.png
How to write
Razvan Jackson
@RazvanJackson
Aug 29 2017 12:06
Who know php?
EpicTriffid
@EpicTriffid
Aug 29 2017 12:19
@Masd925 So would i be concatenating arr or arguments?
Markus Kiili
@Masd925
Aug 29 2017 12:19
@EpicTriffid You should concat arguments's elements (passed arrays).
arr only holds one array.
EpicTriffid
@EpicTriffid
Aug 29 2017 12:23
@Masd925 so when referencing the loop, it would be arguments[i]?
Markus Kiili
@Masd925
Aug 29 2017 12:23
@EpicTriffid Yes.
EpicTriffid
@EpicTriffid
Aug 29 2017 12:23
@Masd925 Ok, cool. Let me try this out then
Ogundele Olumide
@Lumexralph
Aug 29 2017 12:28
@RazvanJackson @Masd925 knows php
Markus Kiili
@Masd925
Aug 29 2017 12:28
@Lumexralph :imp:
I had such a good day...
Ogundele Olumide
@Lumexralph
Aug 29 2017 12:29
@Masd925 :joy:
didn't mean to be a spoiler.... :smile:
Markus Kiili
@Masd925
Aug 29 2017 12:29
@Lumexralph I will use this as a force. Today at jiujitsu, I will pretend the opponent is you.
Or maybe not. I would kill him/her.
Ogundele Olumide
@Lumexralph
Aug 29 2017 12:30
@Masd925 :smile: i fear for the virtual me
Markus Kiili
@Masd925
Aug 29 2017 12:31
Bloody FreePhPCamp today.
;)
EpicTriffid
@EpicTriffid
Aug 29 2017 12:32
@Masd925 Ah, right. So I've managed to push them into my temporary array, and now they exist as nested arrays. Can i now run a second for loop to make them all part of one contiguous array instead of being in their own little ones?
Shy py
@panyu001
Aug 29 2017 12:32
hello
Markus Kiili
@Masd925
Aug 29 2017 12:33
@Lumexralph What tests were you writing all night. Tell me or it didn't happen.
Andrew Kay
@andrewjkay
Aug 29 2017 12:34
@Masd925 why do they need to be nested arrays rather than an array of strings?
Ogundele Olumide
@Lumexralph
Aug 29 2017 12:35
@Masd925 it was BDD for the route of the app I'm building
Pethaf
@Pethaf
Aug 29 2017 12:35
@Masd925 And then the opponent does a suemi-geshi on you, and leaves you all surprised.
Ogundele Olumide
@Lumexralph
Aug 29 2017 12:35
@Masd925 i'm worried by the tests cos I'm not expecting all to pass but to my amazement all are passing and don't have time yet to debug
@Pethaf :joy:
@Pethaf that'll be the virtual me
Pethaf
@Pethaf
Aug 29 2017 12:36
I did jujutsu for like 4 years.
Markus Kiili
@Masd925
Aug 29 2017 12:36
@Lumexralph Those are called failed tests. Make some more.
Ogundele Olumide
@Lumexralph
Aug 29 2017 12:36
@Pethaf please represent the virtual me
@Masd925 yeah..... you can't cover it all but you can cover most
@Masd925 how's the day day panning out?
Markus Kiili
@Masd925
Aug 29 2017 12:40
@Lumexralph Just leaving from work now. Some sports and Game of thrones in the evening.
@Lumexralph Yes, it is very hard to say when you have tested enough.
Ogundele Olumide
@Lumexralph
Aug 29 2017 12:43
@Masd925 I'll get to the bottom of it eventually
Aimee
@bestAimee
Aug 29 2017 13:32
hello ,i meet a bug, i write an alert in a function,i only allocate once,but i always work
image.png
Christopher McCormack
@cmccormack
Aug 29 2017 13:40
@bestAimee you are checking a whole word against another whole word. That will only work if the word contains the entirety of the other word with the same case:
> 'yesterday'.indexOf('yes')
0
> 'yesterday'.indexOf('yah')
-1
Aimee
@bestAimee
Aug 29 2017 13:42
now i don't check ,because the alert;
Christopher McCormack
@cmccormack
Aug 29 2017 13:42
Don't use an alert
try using console.log()
Aimee
@bestAimee
Aug 29 2017 13:43
function mutation(arr1,arr2){
alert(arr1.indexOf(arr2));
if(arr1.indexOf(arr2)>0){
return false;}
else{
return true;
}
now if i open that web,the alert always working,so i can do nothing
Christopher McCormack
@cmccormack
Aug 29 2017 13:45
Don't use alerts, especially if you cannot close it for some reason
Are you not able to click x or the button?
Stephen James
@sjames1958gm
Aug 29 2017 13:46
@bestAimee Use console.log and open the devtools console - use F12 to open (on linux/windows)
@bestAimee If you click run it will call your function several times, so the alert will pop up several times
Aimee
@bestAimee
Aug 29 2017 13:50
now ,how can i prevent alert pop up
Tiago Correia
@tiagocorreiaalmeida
Aug 29 2017 14:40
any idea what im doing wrong?
image.png
do I need to install git locally?
LydaTech
@lydatech
Aug 29 2017 14:44
yes
Tiago Correia
@tiagocorreiaalmeida
Aug 29 2017 14:46
thanks @lydatech
CamperBot
@camperbot
Aug 29 2017 14:46
tiagocorreiaalmeida sends brownie points to @lydatech :sparkles: :thumbsup: :sparkles:
:warning: tiagocorreiaalmeida already gave lydatech points
Pethaf
@Pethaf
Aug 29 2017 14:52
@tiagocorreiaalmeida Seems quite obvious.
Either you don't have git installed, or the git binary isn't in your path.
Tiago Correia
@tiagocorreiaalmeida
Aug 29 2017 14:52
allready installed about the binary how can I do this?
Pethaf
@Pethaf
Aug 29 2017 14:55
Can you type git in your command prompt?
Tiago Correia
@tiagocorreiaalmeida
Aug 29 2017 14:56
im using powershell that's ok right?
Stephen James
@sjames1958gm
Aug 29 2017 14:58
@bestAimee Just don't put the alert command in your function.
@tiagocorreiaalmeida I would use git bash that comes with the git install on windows.
Tiago Correia
@tiagocorreiaalmeida
Aug 29 2017 15:13
@sjames1958gm thanks mate
CamperBot
@camperbot
Aug 29 2017 15:13
tiagocorreiaalmeida sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 8409 | @sjames1958gm |http://www.freecodecamp.com/sjames1958gm
Stephen James
@sjames1958gm
Aug 29 2017 15:13
@tiagocorreiaalmeida :+1:
Jason Luboff
@JLuboff
Aug 29 2017 15:15
:wave:
Stephen James
@sjames1958gm
Aug 29 2017 15:46
@JLuboff :wave: cheers
Tiago Correia
@tiagocorreiaalmeida
Aug 29 2017 15:51
@sjames1958gm
image.png
aaaaaa this is still such a confusing thing to me
Stephen James
@sjames1958gm
Aug 29 2017 15:52
learnyounode? or learnyournode? I think the first
Moisés Man
@moigithub
Aug 29 2017 15:53
Stephen James
@sjames1958gm
Aug 29 2017 15:53
404 means not found which usually means a typo
Tiago Correia
@tiagocorreiaalmeida
Aug 29 2017 15:53
yeah its you sometimes you dont see the most simple things :D
it is*
thanks once again
Stephen James
@sjames1958gm
Aug 29 2017 15:53
:+1:
Tiago Correia
@tiagocorreiaalmeida
Aug 29 2017 15:54
is it normal that the current lesson and previous one were the most confusing of them all to me?xd
Stephen James
@sjames1958gm
Aug 29 2017 15:56
@tiagocorreiaalmeida I had some experience with node before running those challenges and they were still confusing.
So it seems to be pretty normal
Moisés Man
@moigithub
Aug 29 2017 15:58
i dont think learnyou**whatever teach u anything they are just exercises for u to solve
Ene Catalin
@EneCatalin
Aug 29 2017 15:58
they are good for familiarizing with node
Tiago Correia
@tiagocorreiaalmeida
Aug 29 2017 15:59
ok thanks @moigithub and @EneCatalin for the info
CamperBot
@camperbot
Aug 29 2017 15:59
tiagocorreiaalmeida sends brownie points to @moigithub and @enecatalin :sparkles: :thumbsup: :sparkles:
:cookie: 445 | @enecatalin |http://www.freecodecamp.com/enecatalin
:star2: 3615 | @moigithub |http://www.freecodecamp.com/moigithub
Stephen James
@sjames1958gm
Aug 29 2017 16:13
Since they are buggy and fragile you probably learn more just fighting through issues as much as the challenges themselves :(
Tiago Correia
@tiagocorreiaalmeida
Aug 29 2017 16:16
so I made this
console.log(process.argv);
var value = process.argv[2].split("");
var total = 0;
for(var i = 0 ; i < value.length; i++){
total += Number(value[i]);
}
console.log(total);
for the second exercise
image.png
my idea is wrong or I didnt understand what they asked?
Abhinav Mishra
@abhinav-m
Aug 29 2017 16:17
damn i hate this..
the tutorials for d3 show some functions then the actual example has different ones
Jason Luboff
@JLuboff
Aug 29 2017 16:24
Learnyounode suuuccckkksss. I hate it :D
Abhinav Mishra
@abhinav-m
Aug 29 2017 16:25
^
word
Tiago Correia
@tiagocorreiaalmeida
Aug 29 2017 16:25
doesnt seems fun at all xd, anyway allready figure out the issue :D
Ronique Ricketts
@RoniqueRicketts
Aug 29 2017 16:34
. @JLuboff why
heroiczero
@heroiczero
Aug 29 2017 16:35

I am so confused with this Kata: https://www.codewars.com/kata/speedcode-number-3-x-fun-with-es6-classes-number-5-dogs-and-classes/train/javascript
should it not be:

class Labrador extends Dog{
  constructor(name, age, gender, species , size, master , loyal) {
    super(name,age,gender,"Labrador", "Large" , master , true);
  }
}

for the answer or am i wrong?

Jason Luboff
@JLuboff
Aug 29 2017 16:35
@RoniqueRicketts Becuase it doesn't teach you anything.
Ronique Ricketts
@RoniqueRicketts
Aug 29 2017 16:36
@JLuboff Damn, that's not cool.
Jason Luboff
@JLuboff
Aug 29 2017 16:36
Nope!
Ronique Ricketts
@RoniqueRicketts
Aug 29 2017 16:37
Before I jump into React I'm o need some good solid resources to learn from. From Basic to intermediate to Comfortable.
Marc
@MWBauer
Aug 29 2017 16:45
If I'm trying to return an iteration of a nested For loop, would it be arr[I][j]?
Jason Luboff
@JLuboff
Aug 29 2017 16:47
@MWBauer If your iterator for your first loop is i and the second loop is j then it would return only once so it would be at arr[0][0] assuming your iterators start at 0
Marc
@MWBauer
Aug 29 2017 16:49
Ok. I'm trying the biggest number challenge. 1 array with 4 sub-arrays, with 4 elements each. So I need for it to look into the first array, step thru each sub to grab the biggest.
What I have so far:
function largestOfFour(arr) {
  var big = 0;
  for (i = 0; i < arr.length; i++) {
    for (j = 0; j < arr[i].length; j++) {
      if (arr[i][j] > big)
      big = arr[i][j];
    }
  }  
  return arr[i][j];

}
Tiago Correia
@tiagocorreiaalmeida
Aug 29 2017 16:49
@JLuboff those exercises seem kinda boring are they really important for the future or? even those who come after the learnyounode
Jason Luboff
@JLuboff
Aug 29 2017 16:51
@MWBauer Ok, you're on the right track. You'll want an additional variable (an empty array) that you push the largest number of each array into
Marc
@MWBauer
Aug 29 2017 16:51
I was going to make var biggest
Jason Luboff
@JLuboff
Aug 29 2017 16:51
@tiagocorreiaalmeida Eh..I personally don't think so, but I would suggest finding another resource to learn node. Personally I purchased a few courses through udemy, but I'm sure you can find plenty of free sources
Tiago Correia
@tiagocorreiaalmeida
Aug 29 2017 16:52
and about mongodb is the one at freecodecamp good for learning?
by the way after frontend what course you choose to start?
Jason Luboff
@JLuboff
Aug 29 2017 16:53
Personally I don't think any of the learnyounode/learnyoumongo/expressworks are very good. You can go through them but I don't think I personally learned much.
I went from front end directly to backend
Tiago Correia
@tiagocorreiaalmeida
Aug 29 2017 16:53
so how did you adquire knowledge of those subjects?
Marc
@MWBauer
Aug 29 2017 16:54
Since I need to return an array, big should be captured into biggest i.e. var biggest []; right?
Jason Luboff
@JLuboff
Aug 29 2017 16:54
udemy courses and practice
@MWBauer After the second loop, you'll want to push big into biggest, then after both loops, return biggest. There is one other step, but I'll leet you try and figure it out
Tiago Correia
@tiagocorreiaalmeida
Aug 29 2017 16:55
ok thanks @JLuboff
CamperBot
@camperbot
Aug 29 2017 16:55
tiagocorreiaalmeida sends brownie points to @jluboff :sparkles: :thumbsup: :sparkles:
:star2: 2176 | @jluboff |http://www.freecodecamp.com/jluboff
Marc
@MWBauer
Aug 29 2017 16:57
@JLuboff I need to compare to find the biggest.
from each array
then push it into the array ?
Gotta get to work. will screw with this more later.
Ashok Bakthavathsalam
@kgashok
Aug 29 2017 17:01
This message was deleted
You can also provide your answer here on gitter as well.
Ashok Bakthavathsalam
@kgashok
Aug 29 2017 17:38

I am trying to develop a bookmarklet. The purpose of the bookmarklet is to display the URL of both the current tab and the new tab that was launched as a result of a window.open call. To simplify things, assume that the launcher.com launches a random URL to visit.

    function getBothURLs() { 
        var currentURL, newWin;

        function launchNew () {
            currentURL = window.location.href; 
            newWin     = window.open("https://www.launcher.com");
        }

        launchNew();
        alert(currentURL); 
        alert(newWin.location.href); // displays 'about:blank'
    }

I am unable to get the URL of the newly launched tab. The alert() (at the very end of the function below) does not correctly display the newly launch tab's URL; instead it displays

 about:blank

When I was troubleshooting this within the Chrome console, I moved the definition of var currentURL, newWin to outside the scope of the getTwoURLs() function. When I invoked the function getBothURLs() from within the console, both currentURL and newWin had valid data.

How should the function getBothURLs() be modified to achieve the desired purpose?

Tiago Correia
@tiagocorreiaalmeida
Aug 29 2017 18:06
image.png
what im missing guys?
Moisés Man
@moigithub
Aug 29 2017 18:07
git status shows anything ?
seems ur current directory is not git initialized
Tiago Correia
@tiagocorreiaalmeida
Aug 29 2017 18:08
just clonned it probably need to init it now right?
Moisés Man
@moigithub
Aug 29 2017 18:09
....probably u on another folder
Tiago Correia
@tiagocorreiaalmeida
Aug 29 2017 18:09
yeah that was it
thanks @moigithub
CamperBot
@camperbot
Aug 29 2017 18:09
tiagocorreiaalmeida sends brownie points to @moigithub :sparkles: :thumbsup: :sparkles:
:star2: 3616 | @moigithub |http://www.freecodecamp.com/moigithub
Joseph
@revisualize
Aug 29 2017 18:12
:wave:
Jason Luboff
@JLuboff
Aug 29 2017 18:14
'ello
Ankur sharma
@ankur1163
Aug 29 2017 18:34
hi
i am planning to buy macbook air
can someone tell me
is this good laptop for full stack developer?
Jason Luboff
@JLuboff
Aug 29 2017 18:35
I mean...an MBA isn't the most powerful of computers, but it should be fine
Ankur sharma
@ankur1163
Aug 29 2017 18:38
i wanted to buy macbook pro
but there is $600 price differnece
between air and pro
I didt find air screen to be very bad. It looks good enough to me
Jason Luboff
@JLuboff
Aug 29 2017 18:39
Yes. Generally the pro's have much faster/better processors
Ankur sharma
@ankur1163
Aug 29 2017 18:39
ok
Stephen James
@sjames1958gm
Aug 29 2017 18:39
Macs are pretty popular with web development - esp. for the design side
Ankur sharma
@ankur1163
Aug 29 2017 18:40
yeah
so macbook air is all good
i guess
Christopher McCormack
@cmccormack
Aug 29 2017 18:53
:wave:
Jason Luboff
@JLuboff
Aug 29 2017 18:53
@cmccormack Yo
Christopher McCormack
@cmccormack
Aug 29 2017 18:55
How goes it?
Jason Luboff
@JLuboff
Aug 29 2017 18:56
Not bad. Made a little progress with my API call for my Game trading app./ You?
Christopher McCormack
@cmccormack
Aug 29 2017 18:57
Good still doing Agile, learning how coder jobs are far less challenging now that work is broken into little tiny tasks :D
What kind of trading app is that?
but I'm doing it with games isntead of books
Using IGDB API but their documentation is fucking horrible. Hell, the way data is returned is horrible too
Christopher McCormack
@cmccormack
Aug 29 2017 18:59
Wow that's a real app! Have you had to do login stuff already?
Jason Luboff
@JLuboff
Aug 29 2017 18:59
I've used passport.js for my Voting and Nightlife apps. I'll use it for this too, but I'll try to create a local strategy as opposed to using github/facebook passthroughs
Christopher McCormack
@cmccormack
Aug 29 2017 19:00
I've used thegamesdb.net api in the past, even created an incomplete python frontend for it. It's not great, but it's not terrible either
Jason Luboff
@JLuboff
Aug 29 2017 19:01
Supposedly this api has even more games then that, but I may look at gamesdb since the way they return data is wierd. They return a lot of ID's instead of names so then you have to do an additional lookup (or already know what an ID represents)
Christopher McCormack
@cmccormack
Aug 29 2017 19:02
ah in that case they both stink. Last I checked the search was really bad
Jason Luboff
@JLuboff
Aug 29 2017 19:03
:joy:
So are you doing your agile training in town or did you travel for it?
Christopher McCormack
@cmccormack
Aug 29 2017 19:04
I had to travel but only a 2 hour drive to Phoenix, it's at my office
Jason Luboff
@JLuboff
Aug 29 2017 19:05
Ah. You work at a remote office?
Christopher McCormack
@cmccormack
Aug 29 2017 19:05
I usually work at home
Jason Luboff
@JLuboff
Aug 29 2017 19:05
Oh, thats sweet
Christopher McCormack
@cmccormack
Aug 29 2017 19:05
yeah special deal just for me :)
Jason Luboff
@JLuboff
Aug 29 2017 19:05
Why are you so special?
Christopher McCormack
@cmccormack
Aug 29 2017 19:06
Been around a long time and most of my job is remote so they let me work remote while my fiancee is doing her post-doc work at NAU
I'll probably be back in Phoenix next year though
Jason Luboff
@JLuboff
Aug 29 2017 19:06
Ah. Thats pretty cool
Christopher McCormack
@cmccormack
Aug 29 2017 19:07
Yyeah it is most of the time. Sometimes it would be better to meet in person though so I drive down
Most people wish they had remote jobs but don't understand how much they miss out on when not around other people
A game trading app sounds awesome, let me know when you finish!
Jason Luboff
@JLuboff
Aug 29 2017 19:14
Ya I'd probably go a little stir crazy working from home :D Plus I need to be able to do physical stuff in the office so meh
And will do, will probably be a couple weeks (each dynamic web app has been taking me 2.5-3 weeks to complete and this one is fairly big in scope)
Christopher McCormack
@cmccormack
Aug 29 2017 19:14
I was happy to start w@h after 45 minute drives each way, but now my drive is 2 hours haha
Jason Luboff
@JLuboff
Aug 29 2017 19:15
My commute is only 10-15 minutes each way :D At my previous two jobs it was 45-60 minutes each way..
Christopher McCormack
@cmccormack
Aug 29 2017 19:15
Yeah it seems pretty big. I might start backend soon and try to catch up, all the projects look fun
Jason Luboff
@JLuboff
Aug 29 2017 19:16
They're alright. A little uninspiring but then once you get into it its not bad
Christopher McCormack
@cmccormack
Aug 29 2017 19:16
well like you're doing with the games, make it your own!
Jason Luboff
@JLuboff
Aug 29 2017 19:17
Exactly
Christopher McCormack
@cmccormack
Aug 29 2017 19:17
I tend to enjoy the projects that give you flexibility and creativity the most
Jason Luboff
@JLuboff
Aug 29 2017 19:17
Ya makes them much more enjoyable
Christopher McCormack
@cmccormack
Aug 29 2017 19:18
Gotta run back to class, ttyl!
Jason Luboff
@JLuboff
Aug 29 2017 19:18
See ya
Tiago Correia
@tiagocorreiaalmeida
Aug 29 2017 19:29
could you guys point some projects I could create for training frontend knowledge?
Johnny Meza
@XLpacman805
Aug 29 2017 19:54
@JLuboff Are you using any frameworks or UI libraries for the dynamic web apps?
Jason Luboff
@JLuboff
Aug 29 2017 19:55
@XLpacman805 For the frontend? Just been using Bulma CSS framework. I don't know angular/react/etc yet so :(
Johnny Meza
@XLpacman805
Aug 29 2017 19:59
yeah for the frontend. These looked like some heavy projects so I decided to begin learning Angular. I'm just wondering if Angular or React will make the development of the apps quicker or not?
Jason Luboff
@JLuboff
Aug 29 2017 19:59
I'm not sure to be honest. You may want to ask in the backend room. After I finish the last two projects I'll move onto Data Viz to learn that stuff
Johnny Meza
@XLpacman805
Aug 29 2017 20:00
Yeah same. I think you recommended that I do backend after front end. I'm glad I did. NodeJS is awesome.
Jason Luboff
@JLuboff
Aug 29 2017 20:01
Ya I like node, and it holds more value to me at this point in time then data viz
Ronique Ricketts
@RoniqueRicketts
Aug 29 2017 20:01
@JLuboff I might jump to node too :trollface:
Jason Luboff
@JLuboff
Aug 29 2017 20:02
:+1:
lawrencelee93
@lawrencelee93
Aug 29 2017 20:26
hello guys, I am very new to javascript
and I am trying to make my function so that when i refresh the page it will start at the initial question
when i refresh the page, it will start with question 2
or 3
etc
Jason Luboff
@JLuboff
Aug 29 2017 20:29
@lawrencelee93 I tried it 4 times and it does it in order each time
lawrencelee93
@lawrencelee93
Aug 29 2017 20:29
even when you refresh the page when the box pops up?
Jason Luboff
@JLuboff
Aug 29 2017 20:30
Yes
Inferfire
@Inferfire
Aug 29 2017 20:46
Well window.reload() reloads the page if I'm not mistaken
Simon Cordova
@gbsimon87
Aug 29 2017 20:56
Good evening to all :)
Jason Luboff
@JLuboff
Aug 29 2017 20:57
Hello
Simon Cordova
@gbsimon87
Aug 29 2017 20:58
hey @JLuboff how've things been on your end?
Jason Luboff
@JLuboff
Aug 29 2017 20:58
@gbsimon87 Not bad...always learning...you?
Simon Cordova
@gbsimon87
Aug 29 2017 21:06
Same here, just picked up CSS Grids recently, it's a beauty to work with
And of course I just crashed my other tab with an infinite loop lolol
Jason Luboff
@JLuboff
Aug 29 2017 21:07
:D
khorram bin salim khondkar
@khorramk
Aug 29 2017 21:10
anyone need help with javascript
Inferfire
@Inferfire
Aug 29 2017 21:11
Kinda
If you got time
Go to my site
whoops
wrong site
and try out the game
and fill out the survey
in the top link
Greta Piliponytė
@gpiliponyte
Aug 29 2017 21:17
guys, how old were you when you started coding? :D
khorram bin salim khondkar
@khorramk
Aug 29 2017 21:18
last year
Jason Luboff
@JLuboff
Aug 29 2017 21:18
@gpiliponyte Html/PHP - Middle school (12ish). Actual semi-serious programming - 27
khorram bin salim khondkar
@khorramk
Aug 29 2017 21:19
python
Simon Cordova
@gbsimon87
Aug 29 2017 21:20
@gpiliponyte I was about to be 29, I just turned recently.
practice practice practice
Greta Piliponytė
@gpiliponyte
Aug 29 2017 21:20
@JLuboff that's cool, do you work as a developer?
Simon Cordova
@gbsimon87
Aug 29 2017 21:20
turned 30**
I do indeed, I believe @JLuboff does as well
Greta Piliponytė
@gpiliponyte
Aug 29 2017 21:21
@gbsimon87 any tips on landing a job then? :D
Simon Cordova
@gbsimon87
Aug 29 2017 21:22
Honestly practice every single day.
It's literally what I did, I sacrificed partying for a while just to study away as much as I could
I got a lot of help from people here at FCC just make sure you return the favour
I'd probably recommend finding out what exactly you'd like to do with programming so you choose the correct programming 'path'
There's no need of starting of with PHP for example if all you want to do is web development, not that you couldn't....
Ronique Ricketts
@RoniqueRicketts
Aug 29 2017 21:25
@JLuboff are you currently working as a developer?
Greta Piliponytė
@gpiliponyte
Aug 29 2017 21:25
@gbsimon87 well, isn't PHP something a lot of companies use for back end?
Keon Samuel
@keonsam
Aug 29 2017 21:26
@gbsimon87 you have a programming job?
Greta Piliponytė
@gpiliponyte
Aug 29 2017 21:27
@gbsimon87 I'm thinking of doing full stack and I'm really not sure which languages I should spend time learning :)
khorram bin salim khondkar
@khorramk
Aug 29 2017 21:27
node.js
is demanding
Jason Luboff
@JLuboff
Aug 29 2017 21:28
@gpiliponyte @RoniqueRicketts Eh...I work in IT but not a developer. I've redone our company Intranet page, as well as created a Digitial Conference Room sign. I'm currently working towards becoming a SQL admin which will also include programming (most likely moving from current platform (Visual Basic) to web based)
Keon Samuel
@keonsam
Aug 29 2017 21:28
.
Greta Piliponytė
@gpiliponyte
Aug 29 2017 21:31
@JLuboff thanks for sharing
CamperBot
@camperbot
Aug 29 2017 21:31
:star2: 2177 | @jluboff |http://www.freecodecamp.com/jluboff
gpiliponyte sends brownie points to @jluboff :sparkles: :thumbsup: :sparkles:
Ronique Ricketts
@RoniqueRicketts
Aug 29 2017 21:32
@JLuboff nice good going man. I hope you get the position your seeking
Jason Luboff
@JLuboff
Aug 29 2017 21:33
@RoniqueRicketts Thanks! I'm already in progress for it, its just going to take time is all
CamperBot
@camperbot
Aug 29 2017 21:33
jluboff sends brownie points to @roniquericketts :sparkles: :thumbsup: :sparkles:
:cookie: 381 | @roniquericketts |http://www.freecodecamp.com/roniquericketts
Simon Cordova
@gbsimon87
Aug 29 2017 21:33

@keonsam I do indeed yes.

@gpiliponyte if you're thinking of doing full stack perhaps the MEAN might be a good one to start...
Here's a good resource as well
https://www.codeschool.com/mean

I meant to send this as well sorry...
https://www.codeschool.com/learn

It's a good spot to see the 'paths' a developer could take

Ronique Ricketts
@RoniqueRicketts
Aug 29 2017 21:34
@JLuboff It will work out man. Just keep pushing. If a complete (computer) dunce like myself can get a job in web development you all can get good development jobs :)
Jason Luboff
@JLuboff
Aug 29 2017 21:35
:+1: :+1:
Simon Cordova
@gbsimon87
Aug 29 2017 21:35
@JLuboff good luck with it buds
Jason Luboff
@JLuboff
Aug 29 2017 21:36
@gbsimon87 Thanks!
CamperBot
@camperbot
Aug 29 2017 21:36
jluboff sends brownie points to @gbsimon87 :sparkles: :thumbsup: :sparkles:
:cookie: 409 | @gbsimon87 |http://www.freecodecamp.com/gbsimon87
Kelechi Chinaka
@ke1echi
Aug 29 2017 21:36
guys i need clearification on the question, does not seem clear to me
@JLuboff can u checkout the question and make sense outta it
Greta Piliponytė
@gpiliponyte
Aug 29 2017 21:37
@gbsimon87 that's awesome. Thanks!
CamperBot
@camperbot
Aug 29 2017 21:37
gpiliponyte sends brownie points to @gbsimon87 :sparkles: :thumbsup: :sparkles:
:cookie: 410 | @gbsimon87 |http://www.freecodecamp.com/gbsimon87
Simon Cordova
@gbsimon87
Aug 29 2017 21:39

@gpiliponyte @keonsam

It's difficult for anybody to give tips on how to get a job in programming per say. That's why I keep emphasizing practice non stop.

One of the best tips I've been given is the following. In my job we do a lot of Vanilla JS and jQuery. I then started learning Python and my lead developer told me that although it's great I was expanding, I should perhaps concentrate more on JS, for example, learn a framework or two. I'm currently getting lots of experience with React, so I'm trying to master one language as oppose to being overly versatile in many.

Jason Luboff
@JLuboff
Aug 29 2017 21:39
@kelechy Hmmm...seems that you have to take all letters that have a closing (aka "Ring"), count how many "rings" you get, divide by 2 (and then do Math.floor), and than return the necessary string based on the number of rings. Kind of an odd one
Kelechi Chinaka
@ke1echi
Aug 29 2017 21:41
function olympicRing(a){
  var ring = 'bpeaodg', count = 0;
  for (var i = 0; i < a.length; i++) {
    if (ring.indexOf(a[i].toLowerCase()) !== -1) count++;
  }
  count = Math.floor(count/2);
  return (count <= 1) ? 'Not even a medal!' : (count == 2) ? 'Bronze!' : (count == 3) ? 'Silver!' : 'Gold!' ;
}
my code passes all sample test, but fails some random test bcos i dnt understand what the author wants exactly
Jason Luboff
@JLuboff
Aug 29 2017 21:41
I'm trying it right now
Kelechi Chinaka
@ke1echi
Aug 29 2017 21:42
ok
Ronique Ricketts
@RoniqueRicketts
Aug 29 2017 21:42
@gbsimon87 Good, I follow that statement to the T I agree that its through practicing that we can possible be good at programming. I am kinda stuck at the moment though. Job requires me to learn codeignighter, my mind wanna learn nodejs and my heart is telling me Reactjs.
Kelechi Chinaka
@ke1echi
Aug 29 2017 21:44
it also wants you to count B as 2 rings @JLuboff
Jason Luboff
@JLuboff
Aug 29 2017 21:44
Correct
Simon Cordova
@gbsimon87
Aug 29 2017 21:47
@RoniqueRicketts I followed react after seeing many clients dropping out of angular
Both are great for workflow and will basically do the same job in a sense, but for the clients I work for React just made more sense to start with
Kelechi Chinaka
@ke1echi
Aug 29 2017 21:48
tell me when u r done @JLuboff
Ronique Ricketts
@RoniqueRicketts
Aug 29 2017 21:49
@gbsimon87 I plan to learn Reactjs and codeignighter at the same time is that a smart thing to do?
Jason Luboff
@JLuboff
Aug 29 2017 21:51
@kelechy Got it
lawrencelee93
@lawrencelee93
Aug 29 2017 21:51
how can you change a string to a integer
and add?
khorram bin salim khondkar
@khorramk
Aug 29 2017 21:52
any site to learn json and ajax please
Jason Luboff
@JLuboff
Aug 29 2017 21:52
@kelechy I didn't try and make it fancy just went with basic loop and if/else if
function olympicRing(a){

let oneRing = ['a','A','b','d','D','e','o','O','p','P','q','Q','R', 'g']
let count = 0;

for(let i = 0; i < a.length; i++){
  if(oneRing.indexOf(a[i]) > -1) {
    count++;
  } else if (a[i] === "B"){ 
    count+=2;
  }
}

count = Math.floor(count / 2);
return count <= 1 ? "Not even a medal!" : count === 2 ? "Bronze!" : count === 3 ? "Silver!" : "Gold!";
}
Ronique Ricketts
@RoniqueRicketts
Aug 29 2017 21:52
@lawrencelee93var num = new Number("45");
Simon Cordova
@gbsimon87
Aug 29 2017 21:53
@RoniqueRicketts I'm not sure of your learning but I'd recommend some fundamental PHP learning first before codeigniter
Ronique Ricketts
@RoniqueRicketts
Aug 29 2017 21:53
@gbsimon87 lol, that is what I think too but my team lead thinks I can learn codeignighter IDK WHY!!!!!
Simon Cordova
@gbsimon87
Aug 29 2017 21:54
I honestly have no idea what it entails I just know it's a PHP framework
Good luck nonetheless
sorry im not really understanding how to change the numb and num to an integer
Kelechi Chinaka
@ke1echi
Aug 29 2017 21:58
pls explain the question to me @JLuboff
Jason Luboff
@JLuboff
Aug 29 2017 21:59
@kelechy You need to take into account all lower and upper case letters that have a closing point (hence my array). "B" is the only letter that is worth 2 rings. I think my solution is basically the same as yours except I take into account all letters and "B"
Ronique Ricketts
@RoniqueRicketts
Aug 29 2017 22:00
@gbsimon87 :+1: I don't what he heard but I think he doesn't believe I only know html and Javascript.
Kelechi Chinaka
@ke1echi
Aug 29 2017 22:02
ohh..
Ogundele Olumide
@Lumexralph
Aug 29 2017 22:04
Hallo :wave:
Kelechi Chinaka
@ke1echi
Aug 29 2017 22:05
your description was better than that of the kata sensei :smile: @JLuboff
:wave: omo awfa @Lumexralph
Ogundele Olumide
@Lumexralph
Aug 29 2017 22:05
@kelechy i dey padi, what's up?
Kelechi Chinaka
@ke1echi
Aug 29 2017 22:09
i de o, hows the code treating u @Lumexralph
Ronique Ricketts
@RoniqueRicketts
Aug 29 2017 22:09
@gbsimon87 hmmm what does the PHP in the Acronym PHP stands for? :trollface:
Ogundele Olumide
@Lumexralph
Aug 29 2017 22:12
@kelechy very well bro, not beyond comprehension
just tired and i want to finish some aspect of the app i'm building
Kelechi Chinaka
@ke1echi
Aug 29 2017 22:14
mehn i gato see this app :smile: , what is it about @Lumexralph
Simon Cordova
@gbsimon87
Aug 29 2017 22:15

@RoniqueRicketts
https://en.wikipedia.org/wiki/PHP

You got that one covered :)

Ronique Ricketts
@RoniqueRicketts
Aug 29 2017 22:16
@gbsimon87 so is the name PHP a continuous loop? Since each stack the P in PHP is PHP. :trollface:
Kelechi Chinaka
@ke1echi
Aug 29 2017 22:42
you should always have a rest bcos its important @Lumexralph
Ogundele Olumide
@Lumexralph
Aug 29 2017 22:43
@kelechy about taking nap now... thanks, enjoy your katas
CamperBot
@camperbot
Aug 29 2017 22:43
lumexralph sends brownie points to @kelechy :sparkles: :thumbsup: :sparkles:
:cookie: 311 | @kelechy |http://www.freecodecamp.com/kelechy
Huỳnh Trần Khanh
@khanh2003
Aug 29 2017 23:28

@RoniqueRicketts

a continuous loop

It's a recursive acronym.