@isprutfromua
Posted
Hi there. You did a good job π
keep improving your programming skills
your solution looks great, however, if you want to improve it, you can follow these steps:
π’ your initial layout has no advice number. It looks as bug)
π’ try to follow a single code style throughout the program. In almost all places you use arrow functions, and only for handle the fetch request - the usual anonymous function. Also try to use destructing.
.then(({slip}) => {
const {id, advice} = slip;
titleId.textContent = id;
randomText.textContent = advice;
})
Looks more cleaner, right?
π’ Change id class to box__id instead of box__title--id, because it's not a modificator
I hope my feedback will be helpful
Good luck and fun coding π€β¨οΈ
Marked as helpful
@margsoftbf
Posted
@isprutfromua Thanks, for help i changed everything what you said. Thanks a lot :)
@isprutfromua
Posted
@margsoftbf Hi there
I'm glad it was useful to you
Cheers, peace and happy coding!