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
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
$('.list-group-style').on('click', '.list-group-item', activeStyles)
@Marmiz thanks for the help
CamperBot
@camperbot
breese8009 sends brownie points to @marmiz :sparkles: :thumbsup: :sparkles:
:star2: 1038 | @marmiz |http://www.freecodecamp.com/marmiz
Claudio Restifo
@Marmiz

@breese8009 Glad it worked but I think you overcomplicated.
You are inserting some elements into the page, and then want to listen to a click on that element created, right?

you could have simply add a listener to each specific element when rendered :)
example:

const render => () => {
let item = `<a onclick="customMethod">Test</a>`
whatever.prepend(item);
}

const customMethod = () => this.data('id')

@Manish-Giri More Regex help!! XD.

I am not sure why this matches the last test. It passes all the others. I thought the syntax {num1, num2} matched a range? Is it a bug? Here is my regex:

let ohStr = "Ohhh no";
let ohRegex = /h{3,6}/;
let result = ohRegex.test(ohStr);

\*Your regex should use curly brackets.
Your regex should not match "Ohh no"
Your regex should match "Ohhh no"
Your regex should match "Ohhhh no"
Your regex should match "Ohhhhh no"
Your regex should match "Ohhhhhh no"
Your regex should not match "Ohhhhhhh no"*/
Bryan Reese
@breese8009
@Marmiz yea that is much cleaner
@Marmiz i got another question for ya
Manish Giri
@Manish-Giri
@addisonday your regex only matches h 3 to 6 times
you need to put Oh{...} no in the / / bit