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
llamatarianism
@llamatarianism
@daemedeor you're correct, that was the problem
@daemedeor thanks
CamperBot
@camperbot
llamatarianism sends brownie points to @daemedeor :sparkles: :thumbsup: :sparkles:
:star: 204 | @daemedeor | http://www.freecodecamp.com/daemedeor
Trilok reddy
@Trilokreddy007

function myFunction() {

// Only change code below this line.

return math.random()*myFunction;

// Only change code above this line.
}
it only says math is not defined

Justin
@daemedeor
Math.random()
;)
math isn’t defined
Elbert Cortez
@trip16661

$(document).ready(function() {
var api = "http://www.stands4.com/services/v2/quotes.php?uid=5004&tokenid=LQT1R9DoNwzUYS1O";
var apiAuthor = "&searchtype=AUTHOR&query=";
  var authorInput;
  $("#submit").on("click", function() {
    authorInput = $("#autor").val();



  });
});
Why is authorInput shows as undefined? D:
Malcolm
@noinkling
@buonarfcc you shouldn't be assigning result on every line in your object, and you shouldn't be naming your object the same as the argument
Justin
@daemedeor
@trip16661 because you misspelled author?
#autor is probably on the page as #author
i’m guessing cause everything else is spelled right
Rithvik Vibhu
@rithvikvibhu
@buonarfcc What we want is key: value;. In this case, key = alpha and so on and value is Adams. So it would look something like 'alpha': 'Adams'
The lookup object can then then be used in the return statement as lookup["alpha"]
We get the key in a variable (lookup), hence lookup[lookup]
Elbert Cortez
@trip16661
yes pretty much
im straight up retarded
ahahahahahaha im so dumb >_<
Trilok reddy
@Trilokreddy007
@ @daemedeor thanks
CamperBot
@camperbot
trilokreddy007 sends brownie points to @daemedeor :sparkles: :thumbsup: :sparkles:
:star: 205 | @daemedeor | http://www.freecodecamp.com/daemedeor
Elbert Cortez
@trip16661
i spent like 20 min looking all over the internet trying to find why xDD
random-x
@random-x
happens to the best of us, @Trilokreddy007 :D
Justin
@daemedeor
yay 205 stars!
Malcolm
@noinkling
typos and misspellings are some of the most common programmer errors, the trick is how fast you can recognize them when something goes wrong
Rithvik Vibhu
@rithvikvibhu
:point_up: April 6, 2016 10:08 AM The test requires to identify with keys like 'alpha' and the position of alpha isnt known. If i got it wrong, let me know
Justin
@daemedeor
i’m getting good at spotting them quicker and quicker even with commas XD
Elbert Cortez
@trip16661
@daemedeor thanks
CamperBot
@camperbot
trip16661 sends brownie points to @daemedeor :sparkles: :thumbsup: :sparkles:
Rithvik Vibhu
@rithvikvibhu
So it has to be in strings
CamperBot
@camperbot
:star: 206 | @daemedeor | http://www.freecodecamp.com/daemedeor
Elbert Cortez
@trip16661
im really bad at seeing my own errors
Justin
@daemedeor
@trip16661 we all are
thats why we have QA departmenets….
Rithvik Vibhu
@rithvikvibhu
:point_up: April 6, 2016 10:14 AM @daemedeor
Elbert Cortez
@trip16661
it happens with my english often i keep saying things that don't make any sense even though i know the rules xD
Rithvik Vibhu
@rithvikvibhu
Quoting a quote. wow
@trip16661 lel
Justin
@daemedeor
i’m scared for the day that programming stops using english syntax
Malcolm
@noinkling
@trip16661 If you speak spanish then "autor" is a pretty understandable mistake anyway
Justin
@daemedeor
@noinkling that would be understanable if all the other variables were spelled the same way XD
i would’ve been w/e
Malcolm
@noinkling
or portuguese for that matter
Justin
@daemedeor
makes it tougher to debug if i don’t know what the variables are named XD
Rithvik Vibhu
@rithvikvibhu
The @camperbot does not respond in private chats :worried:
Elbert Cortez
@trip16661
@rithvikvibhu my gf is trying to fix my eng and she pointed out that i say latter instead of later and even gave me an explanation about why. But 6 month latter i still :P
xDD
llamatarianism
@llamatarianism
is there a way to give a number a fixed number of decimal places?
I know about toFixed but that returns a string
Justin
@daemedeor
tofixed is the only way
-.-