Why would i use constants inatead of variables | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why would i use constants inatead of variables

12th Jun 2019, 9:40 PM
blohnung de
blohnung de - avatar
4 Answers
+ 5
Constants are fixed value. You can use anywhere in your code. Variables are changeable value. It may change according to your output.
12th Jun 2019, 9:58 PM
A͢J
A͢J - avatar
+ 4
blohnung de welcome
12th Jun 2019, 10:00 PM
A͢J
A͢J - avatar
0
Thank you
12th Jun 2019, 9:59 PM
blohnung de
blohnung de - avatar
- 1
it's why would I, not why would i.
8th Apr 2020, 5:13 PM
🍕🦊Matt H.🍕🦊
🍕🦊Matt H.🍕🦊 - avatar