Assigning value to a declared empty string

Here is a simple code snippet in rescript .

I want to declare an empty string and assign values to it at a later point. I guess I’m missing something very basic here. I really appreciate some help fixing it.

I think you may want to review the sections on let-bindings in the manual.

Here is the playground with some fixed. I added comments to it to explain.

1 Like