You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering if using jQuery for the JS examples is still neccessary, since the Fetch API is widely available nowadays.
The effort would be somewhat small, would cover more cases (for example: NodeJS) and not depend on a big (nowadays) unnecessary library that is slowly losing usage.
jQuery:
$(function(){// Get Badges from our API$.getJSON('https://api.habboapi.net/badges?per_page=50',function(badges){$.each(badges.data,function(key,badge){// Append badges to div$('#badges').append('<img src="'+badge.image+'" />');});});})
I was wondering if using jQuery for the JS examples is still neccessary, since the Fetch API is widely available nowadays.
The effort would be somewhat small, would cover more cases (for example: NodeJS) and not depend on a big (nowadays) unnecessary library that is slowly losing usage.
jQuery:
Vanilla JS:
The text was updated successfully, but these errors were encountered: