Hello everybody, I am working on my weather app but I don't understand how to call my API using Javascript (not jquery) I have looked everywhere but I can not find a way to do it. Can anybody give me a hand?

@Jtmaca9 ip-api.com doesn't support https - there is an error in the devtools console (not the codepen one)Failed to load resource: net::ERR_CONNECTION_REFUSEDThis usually means the site doesn't support https

@Jtmaca9 Well, you are getting a different error with http, if you look in the devtools console (F12 on chrome)pen.js:1 Mixed Content: The page at 'https://codepen.io/Jtmaca9/pen/bZmQOZ?editors=1111' was loaded over HTTPS, but requested an insecure resource 'http://ip-api.com/json'. This request has been blocked; the content must be served over HTTPS.This says you cannot go to http from a https site

@user-ap Didn't think you could use Window.open with CodePen (X-Frame-Option error).

@Marianissimus I guess setAttribute has to operate on HTML though. I've got Random Quote Machine down to a single JS expression, but only outside of CodePen (because CodePen has blocked my JS attempts to open a URL).

Hi guys! I have a Jquery selector question: How do I select all <a> tags, with the delete_tap class, but that don't have the disabled class ? I don't know where the :not() selector fits in $('a.delete_tap') ...

@DarrenfJ as long as your right and the strict is not on if you got it wrong it will just play the same sequence. if you turn strict on and if you got it wrong it will go back to level 1. haha. thats how i build it.

@DarrenfJ thanks bro! appreciate the compliment. but i have one more thing. i dont know how get it faster when u get into higher level

@DanLaff I only select one li, but currently that code does not work, I'm using the query selector method@sjames1958gm currently I am only working on the javascript part, my html is only built as far as i need for now and I will have the option later

Sorry but I still don't get it. How can I make my function run without an user interaction after I got the location (Weatherapp). I have three functions right now... 1. Gets the location when the page loads... 2 takes the latitude and longitude and add "lon" and "lat" and 3. fetch the url to get the weather info. My number 1 and number 2 functions are working but the number 3 does not.

I understand that I have to call the function from the previous one. I can not make it work for some reason.

forEach() executes the callback function once for each array element; unlike map() or reduce() it always returns the value undefined and is not chainable. The typical use case is to execute side effects at the end of a chain.

forEach() does not mutate the array on which it is called (although callback, if invoked, may do so).

There is no way to stop or break a forEach() loop other than by throwing an exception. If you need such behavior, the forEach() method is the wrong tool. Use a plain loop or for...of instead. If you are testing the array elements for a predicate and need a Boolean return value, you can use every() or some() instead. If available, the new methods find() or findIndex() can be used for early termination upon true predicates as well.