SyntaxFix
Write A Post
Hire A Developer
Questions
Another approach is keep that element, change the text, then append that element back
const star_icon = $(li).find('.stars svg') $(li).find('.stars').text(repo.stargazers_count).append(star_icon)