So...right now I'm trying to use a for loop for my Longest Word in a String challenge, but it's exiting when it comes to the first example of my condition. Obviously, I need to change the condition. Anybody in here with the patience to talk me through my lack of skill?

Hey guys, I need some help with the "Return Largest Numbers in Arrays" challenge. I managed to find the largest number in each array, displayed it, etc. But I'm missing one condition because one of the arrays has a smaller max. number than the previous array.

How do I get my Weather app to run in the right order? It shows a console.log with my api URL, with the latitude and longitude undefined, when I haven’t even had time to click okay on allowing geodata.

@swong194 Thank you for your help! Did adding in the function just slow the program down and make it execute in the proper order? It shows the timezone even though the result is not what I expected, I wanted: "America/New_York” to show.

I missed a thanks to @alexanderkopke. Can I see what JSON data I am getting back from darksky? I have a copy from manually visiting the site with FireFox, but I’d like to see whats coming back each call if possible.

@Deroku How do you assign the value of 7 to a variable num? ... var num = 7;Now if you want you can use a variable to store values.Like in mathmatics. num + 3 = 10 What is the value of num?var x = num + 3; ... That outputs 10So, you can do several things with variables. But, you need to understand that variables hold values and variables can be used with other variables.So, how do you assign the value of 5 to a variable x? ... x = 5; (Which is also overwriting the previous value of 10 from above.How do you assign the value of x to a variable y?Look at the way things are written. var y = x;How do you assign the value of 42 to a variable answer? ... What is the answer?Variables hold values. Just understand that.

@Deroku How do you assign the value of 7 to a variable num? ... var num = 7;Now if you want you can use a variable to store values.Like in mathmatics. num + 3 = 10 What is the value of num?var x = num + 3; ... That outputs 10So, you can do several things with variables. But, you need to understand that variables hold values and variables can be used with other variables.So, how do you assign the value of 5 to a variable x? ... x = 5; (Which is also overwriting the previous value of 10 from above.How do you assign the value of x to a variable y?Look at the way things are written. var y = x;How do you assign the value of 42 to a variable answer? ... What is the answer?Variables hold values. Just understand that.

Can someone please help me with this codepen of the React create a recipe project, I need help creating an onClick function that enables editing mode on the Recipe List side of the page, only the top 2 components in the codepen are relevant to the issue, thank you very much for any help.https://codepen.io/Ryanwfile/pen/PjWemw

H everyone, I am having a really hard time with this challenge "Modify the Bike constructor to have a private property called gear and two public methods called getGear and setGear to get and set that value."

Hi everyone! So I'm trying to create this function that tests for palindromes. I have the code below but the console tells me that "modify.filter is not a function". As far as I can see, I'm doing this exactly as described in previous exercises. What am I doing wrong?

@AndreusSH ok lets see. What we have here is a constructor function. It means that When we call the constructor function we create a new object. this inside the constructor is being set to the new object. So we have this.setGear =... so setGear is being put on the new object. var myBike = new Bike(); ok so now we can call the setGear method like this: myBike.setGear(4);

@zentech within your function, you have to use the function arguments to get the values that are passed in - so instead of this.wheels = 4; try this.wheels = wheels; and similarly for the other values.

@meslance so now I can create new objects with this constructor just by doing this: var newObj1 = new createObj(); so if we have such a constructor it is much easier to create new objects this way than doing what we did before. Image if you'd have to create 20 objects manually. Instead you could create a constructor and then just call it with new createObj();

Hi, I'm looking for a hint with the Caesars Cipher exercise... I'm able to translate the message but some of the letters have been turned into odd characters (letters, "@", and even unicodes) instead of letters (other letters are turned correctly).

@rugano Many of such errors can be prevented by starting every new object property on a new line and using proper indentation. You sometimes start a new property on an object before the previous method is properly closed with a }, which causes such errors.

@forkerino I'm working on grabbing json from the dark sky api for the weather app project. However, I don't seem to even be able to edit a div within a nested function. When I do $('.weather-icon').html(jsonUrl); outside of the $.getJSON function, it works properly, but not within. pen follows: https://codepen.io/intervolver/pen/RgKYMb?editors=1010

@intervolver the getJSON callback function is only run upon a succesfull response with information. Your url doesn't point to a valid API endpoint (it doesn't include the host, for example), so the code inside the callback won't be run.

@forkerino here, update. I didn't realize it had to grab it first, so now the question becomes why isn't it grabbing it properly. If I just use the url created for jsonUrl in a new tab, it shows the raw json, so I know the url and the key are fine https://codepen.io/intervolver/pen/RgKYMb?editors=1010

so the url works as it's being created, but getJSON doesn't seem to be able to pull from it, I'll check my browser console presently

"No 'Access-Control-Allow-Origin' header is present on the requested resource."

I'm not familiar with what this means, I haven't had to use a key before with json

@PjdazeHOURHAND is a constant variable holding a DOM element and the style attribute is accessed and the style attributes also has a method called transform and it's assigned the string which will be how the style will apply the transform attribute to the DOM element held by HOURHAND

@sjurs1 it will be much better if you do not use splice at all, because it changes the array you are working on. with .reduce you generally want to create a new array rather than change an existing array. Of course it is possible to do, but bad practice, as anyone reading your code will assume it won't change the input (when in fact it does).

@Wasterlord one minor improvement is to just update biggest if it is smaller than arr[i][j], can save unnecessary overwriting of the variable. Another thing is that if all values in an array are negative, you function would return 0 instead of the largest number in there. Initializing biggest to -Infinity or the first value of the subarray would be better.

@lukashanak Someone who knows what I do wrong? It's program for calculate surface of pyramid. It should return 6 values, but last 2 (SP and S) are not returned... I use prompt("someQuestion") method.. but when I use instead it this 'var a = 8;var h = 4;var v = 0;var pocetStran = 4;'so it return all 6 valueswhere is the problem ? https://codepen.io/lukashanak/pen/yXgRjG?editors=0010

@lukashanak It is difficult to understand exactly what each function is supposed to do because I don't understand the language. But make sure to check the console of your browser for errors (often you can access it with F12).

@McBiggos thanks, will have a closer look at it later. It's something completely different than what I usually like to build and I haven't worked much with canvas, so interested in what kind of patterns you use. :+1:

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

@NikolaZimonjic you first need to insert the item to the end of the array arr using the method push() on the arrayAnd then remove and return the first element of the array using shift() method on the array arr

pop(): Remove an item from then end of an array*pop() returns the removed item.

push(): Add items to then end of an array*push() returns the new array length.

shift(): Remove an item from then beginning of an array*shift() returns the removed item.

unshift(): Add items to then beginning of an array*unshift() returns the new array length.