Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Grumpy Miyagi
    @Grumpy-Miyagi
    botstatus
    CamperBot
    @camperbot
    All bot systems are go!
    botVersion: 0.0.12
    env: prod
    botname: camperbot
    Grumpy Miyagi
    @Grumpy-Miyagi
    help init
    CamperBot
    @camperbot

    :point_right: challenge initializing variables with the equal operator [wiki]

    Challenge Initializing Variables with the Equal Operator

    In most cases you will see a variable being declared and given an initial value all at the same time. This allows you to use it right away with a proper value.

    var myVar = 0;

    Creates a new variable called myVar and assigns it an initial value of 0.

    :pencil: read more about challenge initializing variables with the equal operator on the FCC Wiki

    Grumpy Miyagi
    @Grumpy-Miyagi
    music
    CamperBot
    @camperbot
    Grumpy Miyagi
    @Grumpy-Miyagi
    hi
    init
    bot
    CamperBot
    @camperbot

    CamperBot

    Hi, I'm CamperBot! I can help you in this chatroom :smile:

    Basic Commands:

    • find TOPIC find all entries about topic. e.g. find js
    • wiki TOPIC show contents of topic page
    • thanks @username send brownie points to another user
    • about @username shows info on that user
    • Algorithm BONFIRENAME info on a Algorithm

    meet CamperBot in FreeCodeCamp/camperbotPlayground

    :pencil: read more about camperbot on the FCC Wiki

    Grumpy Miyagi
    @Grumpy-Miyagi
    commands
    CamperBot
    @camperbot

    commands:

    • isCommand
    • cbot
    • echo
    • botversion
    • botstatus
    • botenv
    • archive
    • init
    • tooNoisy
    • help
    • menu
    • rooms
    • find
    • commands
    • music
    • announce
    • rollem
    • eightball
    • camperCount
    • welcome
    • hello
    • wikiFooter
    • wikiUsage
    • wikiCantFind
    • wiki
    • thanks
    • about
    • showInfoCallback
    • update
    • bonfire
    • checkBonfireCommands
    • searchBonfire
    • checkHasBonfire
    • inBonfireRoom
    • hint
    • bf
    • explain
    • bot
    • hi
    • index
    • thank
    • log
    • archives
    Grumpy Miyagi
    @Grumpy-Miyagi
    hello
    algorithm mutations
    boty
    bot
    CamperBot
    @camperbot

    CamperBot

    Hi, I'm CamperBot! I can help you in this chatroom :smile:

    Basic Commands:

    • find TOPIC find all entries about topic. e.g. find js
    • wiki TOPIC show contents of topic page
    • thanks @username send brownie points to another user
    • about @username shows info on that user
    • Algorithm BONFIRENAME info on a Algorithm

    meet CamperBot in FreeCodeCamp/camperbotPlayground

    :pencil: read more about camperbot on the FCC Wiki

    Grumpy Miyagi
    @Grumpy-Miyagi
    Algorithm Mutations
    Algorithm MUTATIONS
    bonfire mutations
    bot
    init
    bot
    init
    bot
    CamperBot
    @camperbot

    CamperBot

    Hi, I'm CamperBot! I can help you in this chatroom :smile:

    Basic Commands:

    • find TOPIC find all entries about topic. e.g. find js
    • wiki TOPIC show contents of topic page
    • thanks @username send brownie points to another user
    • about @username shows info on that user
    • Algorithm BONFIRENAME info on a Algorithm

    meet CamperBot in FreeCodeCamp/camperbotPlayground

    :pencil: read more about camperbot on the FCC Wiki

    Grumpy Miyagi
    @Grumpy-Miyagi
    mutations
    Grumpy Miyagi
    @Grumpy-Miyagi
    bot
    Gregory Bilecki
    @gbilecki
    hewwo
    Irfan Syed
    @syedirfan7
    hint streamroller
    CamperBot
    @camperbot

    hint [1/1]

    ## :construction: After this are possible spoiler hints.

    Make sure you've tried to hard to solve it yourself before proceeding. :construction:

    type hint for next hint :pencil: [Contribute at the FCC Wiki]

    Irfan Syed
    @syedirfan7
    hint
    CamperBot
    @camperbot
    These hints depend on people like you! Please add to this :point_right: Bonfire's Wiki Hints Page
    Muhammad Hasham
    @MohammadHasham
    hint
    CamperBot
    @camperbot

    hint [1/1]

    ## :construction: After this are possible spoiler hints.

    Make sure you've tried to hard to solve it yourself before proceeding. :construction:

    type hint for next hint :pencil: [Contribute at the FCC Wiki]

    Gene Mountjoy
    @mountwe
    hint
    CamperBot
    @camperbot

    hint [1/1]

    ## :construction: After this are possible spoiler hints.

    Make sure you've tried to hard to solve it yourself before proceeding. :construction:

    type hint for next hint :pencil: [Contribute at the FCC Wiki]

    Jay Houn
    @jhoun
    hint
    CamperBot
    @camperbot

    hint [1/1]

    ## :construction: After this are possible spoiler hints.

    Make sure you've tried to hard to solve it yourself before proceeding. :construction:

    type hint for next hint :pencil: [Contribute at the FCC Wiki]

    Jay Houn
    @jhoun
    hint
    CamperBot
    @camperbot
    These hints depend on people like you! Please add to this :point_right: Bonfire's Wiki Hints Page
    Hichem
    @skyros123
    Thanks @sxmxc @Rafase282 @anuragaryan @hallaathrad for your help with Bonfire: Mutations
    CamperBot
    @camperbot
    :cookie: 349 | @anuragaryan |http://www.freecodecamp.com/anuragaryan
    skyros123 sends brownie points to @sxmxc and @rafase282 and @anuragaryan and @hallaathrad :sparkles: :thumbsup: :sparkles:
    :cookie: 238 | @sxmxc |http://www.freecodecamp.com/sxmxc
    :star2: 1443 | @rafase282 |http://www.freecodecamp.com/rafase282
    :cookie: 531 | @hallaathrad |http://www.freecodecamp.com/hallaathrad
    ksatia
    @ksatia
    Can somebody weigh in on what I'm doing wrong (I'm not a new dev, just haven't done any algo work in quite a while and never in JS) -

    function mutation(arr) {
    //convert everything to lowercase
    var original = arr[0].toLowerCase();
    var toMatch = arr1.toLowerCase().split('');

    console.log(original);
    console.log(toMatch);

    // toMatch.forEach(function(d){
    // return original.indexOf(d) != -1;
    // });

    toMatch.forEach(function(d){
    if (original.indexOf(d) < 0) {
    return false;
    }
    return true;
    });
    }

    console.log(mutation(["array","hub"]));

    I keep getting "undefined" as a printed return value.

    Dawn Swan
    @dawn-swan
    hint