Language syntax questions


#1

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


#2

It’s a uncurried function call of bucklescript.


#3

See https://bucklescript.github.io/docs/en/function.html#solution-guaranteed-uncurrying