Sollicitatievraag bij PureCode Software

Explain the difference between synchronous and asynchronous programming in JavaScript, and provide an example of when you would use each approach?