tel-ran-de / FE12-Basic

2 stars 12 forks source link

CW 2020-12-14 - promise exercise #146

Open isalexlog opened 3 years ago

isalexlog commented 3 years ago

We need to emulate back end functionality in browser.

Before returning any response, we need to wait from 1 to 5 seconds.

Print "Error" in red color on the screen in case of unsuccessful response, print "Hello" in green color in case if successful response.

When waiting the response, count seconds on the screen.