Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Finding Value of Promise With Then Syntax

Promise.resolve("XXXX").then(value=>
	console.log(value));
     
    /*NOT*/
    
		console.log(Promise.resolve("XXXX").then(value=> value));
     /*do your work inside of the then()*/
 
PREVIOUS NEXT
Tagged: #Finding #Value #Promise #With #Then #Syntax
ADD COMMENT
Topic
Name
6+2 =