d3.text load text file with async/await api return promise – Javascript
I try to load a text file with d3.text api as below, but it return a promise. I would expect it return the text file content. async function loadSync(filename) { return await d3.text(filename) } function load_address() { var url =…