Focus mode
Code from video: https://solidity-by-example.org/constants/
You can access the video content in Turkish prepared by İTÜ Blockchain here (beetween 4:30 - 6:19 minutes): https://www.youtube.com/watch?v=XQR2tL4v0_c&list=PLby2HXktGwN4Cof_6a8YwlMrboX8-hs73&index=4
Constants are variables that cannot be modified. Replacing variables with constants can reduce gas cost of calling function on the smart contract.
Resources:
You can find detailed further information from Solidity Official documentation (in English):
https://docs.soliditylang.org/en/v0.8.15/contracts.html#constant-and-immutable-state-variables
Programs to Accelerate Your Progress in a Software Career
Join our 4-8 month intensive Patika+ bootcamps, start with the fundamentals and gain comprehensive knowledge to kickstart your software career!
You need to enroll in the course to be able to comment!