Skip to content

daymos/stopwatch_exercise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

stopwatch_exercise

Stopwatch

This is an execrise to understand asyncronous programing, as it happens in the Javascript Environment.

Why

Modern features of the language, like the Async/Away pattern, make the code look like belonging to the Imperative paradigm. That is when one line of code is executed after the other, with comands being blocking. This has undeniable advantages in terms of readability.

However Javascript and in particular Node.js are well known for their async non-blocking behaviour. It is beneficial to understand this behaviour, in order to use Async/Await and promises correctly.

What

For this exercise you will build a simple stop watch. The stop watch must include the following feature:

Stretch Goal

  • Write a third iteration using Async/Away.
  • Error handling. Error handlilng changes drasticallly depending if your code uses callbacks, promises of async/await. Try to handle error accordingly to how you are writing your code.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors