JSFiddle - React, Tailwind, and code Playground
JavaScript
var promise = new Promise(function (honor_with, not_keep) {
});
promise.then(function (foo) {
$("body").append("<div>Person A: wow I just know that the promise was kept, with the data being " + foo + ", at " + (new Date()).toLocaleTimeString() + "</div>");
});