Learn Asynchronous Programming by Building an fCC Forum Leaderboard - Step 49

Tell us what’s happening:

i get stuck in this step, can someone give me hint?

Your code so far

<!-- file: index.html -->

/* file: styles.css */

/* file: script.js */
// User Editable Region

const userAvatarUrl = () => /^user_avatar/.test(avatar)?avatarUrl.concat(avatar):avatar;

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36

Challenge Information:

Learn Asynchronous Programming by Building an fCC Forum Leaderboard - Step 49

1 Like

Hi there!

You didn’t need a callback function, also not to use .test() method on avatar string.
Hint: you need .startsWidth() method to include"/user_avatar/"

got it! ty for your help

1 Like