How do you use .then in javascript? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do you use .then in javascript?

is it a property or a method and how is it used

16th Jun 2020, 5:14 PM
moses
moses - avatar
4 Answers
+ 1
then is a method of promise
16th Jun 2020, 5:29 PM
george
george - avatar
+ 1
Promise (read in mozilla help platform)
16th Jun 2020, 5:30 PM
george
george - avatar
+ 1
find in google Promise JS and read it. promise used in async functions when you send some request to server and wait for answer.
16th Jun 2020, 5:42 PM
george
george - avatar
0
what?
16th Jun 2020, 5:30 PM
moses
moses - avatar