Hello I am new to blockchain. I was reading solidity docs and they were continuously repeating the word "literal", what does this word mean? Please elaborate.

  • 3
    Constant value, like 42 or "xyz". Commented Apr 30, 2020 at 15:19

1 Answer 1


Literals refer to fixed values that the program may not alter during its execution. These fixed values are also called constants. Generally, both terms, constants and literals are used interchangeably.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.