-2

I have confused with synchronous and assynchronous in javascript is javascript is a synchronous or assynchronous ,suggest your idea or any relevant website , thanks

2

1 Answer 1

1

You can write either synchronous or asynchronous code in JavaScript. It is not only one or another. For instance, an ajax call is asynchronous by it's nature. On the other hand, when you execute a function to show an alert with a message when a button will be clicked is clearly an not asynchronous job. Hence, as you understand there are areas in JavaScript as in other programming languages, where we make use of asynchronous programming and others in which we make use of synchronous programming.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.