0

I'm working through https://tezosacademy.io/pascal/chapter-variables

And it's walking me through how to assign values to const and var types. However, there's a note that says:

Notice the assignment operator := for var, instead of = for constants.

For example, we can do:

const age: int = 25

But for var we need to use :=:

var age: int := 25

Why? What's the difference?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.