Skip to content

Instantly share code, notes, and snippets.

@kwebble
kwebble / promise_flow.html
Last active May 12, 2020 09:33
Example of the process flow to get a value from a JavaScript function that returns a Promise
<!DOCTYPE html>
<meta charset="utf-8">
<script>
function action () {
console.log('ACTION')
return 'VALUE'
}
function getData () {