Hi all
I have the following code:
Js.Promise.(
Axios.get("http://localhost:8080/coins")
)
|> Js.Promise.then_(value => {
Js.Promise.resolve(value##data);
})
|> Js.Promise.then_(value => {
Js.log(value);
Js.Promise.resolve(())
});
With ##
I do call javascript property right(https://reasonml.github.io/docs/en/object.html)?
And another code:
let myPromise = Js.Promise.make((~resolve, ~reject) => resolve(. 2));
What does the point infront of 2 mean?
Thanks