en.javascript.info/8-async/02-promise-basics/03-animate-circle-promise/task.md
Ilya Kantor cce95cb631 up
2017-04-23 02:33:24 +03:00

15 lines
412 B
Markdown

# Animated circle with promise
Rewrite the `showCircle` function in the solution of the task <info:task/animate-circle-callback> so that it returns a promise instead of accepting a callback.
The new usage:
```js
showCircle(150, 150, 100).then(div => {
div.classList.add('message-ball');
div.append("Hello, world!");
});
```
Take the solution of the task <info:task/animate-circle-callback> as the base.