Where communities thrive


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

    thecodingaviator on master

    remove A (#31157) (compare)

  • Apr 01 18:04
    thecodingaviator closed #31157
  • Apr 01 18:04
    thecodingaviator closed #33788
  • Apr 01 18:04
    thecodingaviator commented #33788
  • Apr 01 18:02
    thecodingaviator closed #31059
  • Apr 01 18:02
    thecodingaviator commented #31059
Coy Sanders
@coymeetsworld
i would rethink this
Nick Cleary
@Hijerboa
ok... Legitimate question: how else would I break out of the for loop?
or should i not use a for loop at all?
because thats the only way i can think of to test for primes
Manish Giri
@Manish-Giri
@Hijerboa return inside a for loop would terminate it..
Gersho
@Gersho
wouldn't that stop the function too ?
Nick Cleary
@Hijerboa
@Manish-Giri as @Gersho it would stop the function... and im trying to add all primes for one of the challenge
Coy Sanders
@coymeetsworld
use break to break out of the loop
Manish Giri
@Manish-Giri
then use break
besides, I did say "terminate", didn't I?
Gersho
@Gersho
you did, but it terminates more than intended :P
Nick Cleary
@Hijerboa
@coymeetsworld @Manish-Giri I honeslty had no idea break existed....
Manish Giri
@Manish-Giri
terminate was meant as terminate the function.
Gersho
@Gersho
break and continue are both keyword usable within a loop @Hijerboa
Nick Cleary
@Hijerboa
@Gersho @Manish-Giri @coymeetsworld TIL... thanks guys
CamperBot
@camperbot
hijerboa sends brownie points to @gersho and @manish-giri and @coymeetsworld :sparkles: :thumbsup: :sparkles:
:cookie: 404 | @gersho |http://www.freecodecamp.com/gersho
:star2: 3000 | @coymeetsworld |http://www.freecodecamp.com/coymeetsworld
:star2: 6512 | @manish-giri |http://www.freecodecamp.com/manish-giri
Gersho
@Gersho
@coymeetsworld 3k, congratulation
Manish Giri
@Manish-Giri
woot woot, congrats @coymeetsworld
:tada:
Coy Sanders
@coymeetsworld
:ok_hand: only took like 2 months since 2990 lol
Manish Giri
@Manish-Giri
lol
Coy Sanders
@coymeetsworld
then again i was on vacation pretty much all last month
Adam Faraj
@adamfaraj
hey guys
Gersho
@Gersho
:wave: @adamfaraj
Ronique Ricketts
@RoniqueRicketts
Sup
Adam Faraj
@adamfaraj
got a quick issue i'm trying to fix
nvm, got it
haha
Gersho
@Gersho
CodeAcademy's React lessons are nice, but i'm getting tired of copy pasting document.getElementById('app')
luccifer00
@luccifer00
hie there! i would like to créate a function for créate an ordered list based on letters, A-Z, so the next after Z should be AA, AB, .... and After ZZ, should be AAA, AAB, and so on....
for(var i=0;i<input;i++){
    var letter=String.fromCharCode(i+65);
      if(letter> 91){
        function add(first,scnd){

        }
      }
i have this start, but i dont know how to realice at all...
Bryan Reese
@breese8009
so i got 2 functions, one is rendering, the other at this point I just want to get the exact data-id everytime i click on a .list-group-item but i only get the first one right then it will just keep logging that one over an over...
function renderListStyle(style) {

    let styleHtml=`
    <a href="#" class="list-group-item list-group-item-action" data-id="${style._id}">${style.type}</a>
    `
    $('.list-group-style').prepend(styleHtml);

}




function activeStyles(e) {
    let styleId = $(this).find('a').attr('data-id');
    console.log(styleId)


}
Claudio Restifo
@Marmiz
@breese8009 have you tried with the data function?
(this).data('id')
Bryan Reese
@breese8009
@Marmiz wouldnt that give me the same thing?
as what im getitng with styleId
or no?
ill try it real quick an let u kno for sure
lol
@Marmiz gave me same thing
Claudio Restifo
@Marmiz

@breese8009 anyway I would refactor the render as so:
I would add a onclick listener directly on the a that call a methods that gives you back the data.

So far how are you listening for the activeStles()?

Bryan Reese
@breese8009
@Marmiz i hadnt gotten there yet, i was tying to get the id to come up on the element i click
but for some reason when i click act like i clicked an its actin like a div got clicked
ah i cant type
i give up lol
Bryan Reese
@breese8009
i solved it
add 2nd arg to click event