Difficulty -
Medium
Total Plays - 4
Allowed Time - 10 sec
Best time - 10 sec
What is the primary purpose of a modifier in Solidity?
#A
#B
#C
#D
Explanation:
Modifiers are used to add conditional logic like access control to functions. They prevent code repetition and keep logic clean.