Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const tempreturess = (dat) => {
- const y = dat.data.map(x=>x.temp);
- return y
- }
- const getHourlyWeathe = () =>{
- return $.get(`https://api.weatherbit.io/v2.0/forecast/3hourly?city=sofia&key=9591750b572f4a06ad2c58eb7e83e00e`);
- };
- const cityClickk = () => {
- getHourlyWeathe()
- .then(tempreturess);
- }
- console.log(cityClickk())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement