@colorpanda2011 on ur code.. where u return result;result is a variable....before that line.. u need to ASSIGN values to resultresult = somethingbased on the object u have above lookupsooo result = lookup ... something elsebut lookup is a object with MANY MANY properties:values pairsu only need to pick ONE of em(probably u need to go back few exercises n redo again,, everything related to objects... and access object notations )

please someone can help me with this i need to convert from fahrenheint to celsius a i've tried differents ways and i dont got nothhing function convertToF(celsius) { var fahrenheit; // Only change code below this line

the way I remember it is to think of the 2 scales from freezing to boiling ... one is 0-100, the other is 32 to 212 ... so which is smaller in numbers ... celsius ... so you have to multiply it by a number greater than 1, that is 9/5 ... then, for the 32 ... I think ... okay if celsius is 0 degrees at freezing, and f is 32 ... what do I have to do if celsius is 0? add 32 ... so I can synthesize the equation from information I have

// Change the inputs below to test your codeconvertToF(30); and i need to do this convertToF(0) should return a numberconvertToF(-30) should return a value of -22convertToF(-10) should return a value of 14convertToF(0) should return a value of 32convertToF(20) should return a value of 68convertToF(30) should return a value of 86

@ranaamritparth I havn't written the code. Wanted to know when it should return a truncated string with the dots and when it should return the string "as is" . I am a bit confused with the instructions given

@joffenhauser you need to fix this line: if (a || b < 0);replace ; by {do the same you did to b with a, that is create a comparison, because as it is written, it doesn't say if a or b are less than 0, you have to write if a is less than 0 or b is less than 0

@DKSukhaniHello All, Need help. I used my FCC code onto a different website to test. However, it is not working.I mean - the jquery section is not workingI also put the src <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js?ver=1.4.2'>

@Code-Eric you don't need to check all the falsy values one by one, you can use boolean as suggested in the helpful linksBut if you want to check them one by one you're missing some values, NaN is one of them

@Chrono79 in ceasers cipher, one thing i tried was to set up an object with a: n, b: o.. and so on and so forth. But, when I tried to access the object using an array index, like so: object[arr[1][2]] it didnt work for me. Is there any specific reason for that?

@Chrono79 I see what youre saying. But should it not also work with a variable? Say the “a” = var alpha. Shouldn’t myObj[alpha] work? and by that logic, if ‘a’ = arr[0][1] = var alpha. Should not myObj[alpha] return ’n’?

Using the nodeType information listed in Table 9.1, write a function to find all the HTML comments in the body section of a page and concatenate them into a single string. Add some comments to the code listed in Listing 9.2; then introduce and test your new function.

in the course, they have it as a for loop instead, but I was trying to learn to use a forEach method instead. are there cases in which a for loop works for looping through an array and a forEach method does not?

@BradyPainter the switch statement accepts a var/iable... that variable is used within the switch statement for case by case evaluation/s. check/review the syntax... (there are no returns in the statement, but there are breaks....see that?). what is included in the statement are adjustments to a var/iable used for calculating the running 5 card count total.... clear as mud? :sparkles:

hi guys i have been working on this inventory Update bonfire. i am getting an error TypeError: arrr1[i].indexOf is not a function. however if i comment the code inside the else statement this error doesnot show up.

@BradyPainter that would be correct! as a check (not an assumption), you could reference th statement format/syntax: Switch Statements in JavaScript :sparkles: check the requirement/s: here - The current count and the player's decision ("Bet" or "Hold") should be separated by a single space. :) are you getting the right return/s?

@BradyPainter ok, the logic for the return follows the switch statement... the return need the count value information to provide both pieces of information (the final card count value & the playing action, hold/bet) clear as mud? :)

@AyushKenhi thank you, val is a variable, and you're using dot notation... this may be useful: JS dot-notation vs. bracket notation also, it is helpful to adhere to the exercise guidance: // Only change code above this linereturn result;

Im trying to convert the array into usable chuhnks that a count can accumulate with. EXAMPLE: in ["TEN", 20.00] there are 2 10s = 20.00... I need the array to say 10,10 so that count can use the values .The challenge is Exact Change

Hi guys, I have a question about promise and .then(). When using this code:getLocation.then(function() { // some code to run using obtained location }, errorHandling), assuming getLocation function is "thenable", must getLocation end with a return statement?

@Byzgig I'd gotten really close without using promises (used multiple callbacks instead). The only problem I had was making the last callback (the one to display a background image according to weather conditions) execute only AFTER weather data has been obtained from forecast.io API

Challenge Using Objects for Lookups

Objects can be thought of as a key/value storage, like a dictionary. If you have tabular data, you can use an object to "lookup" values rather than a switch statement or an if/else chain. This is most useful when you know that your input data is limited to a certain range.