Variable and a constant #167585
Closed
rijulraj456
started this conversation in
Discover
Variable and a constant
#167585
Replies: 3 comments 3 replies
-
A: A variable is a storage location in memory whose value can change during program execution. A constant is a value that cannot be modified once it is defined. For example, in Python, x = 10 is a variable that can later be changed to x = 20, while const PI = 3.14 in languages like JavaScript (using const) cannot be reassigned. |
Beta Was this translation helpful? Give feedback.
0 replies
-
What is an algorithm? |
Beta Was this translation helpful? Give feedback.
2 replies
-
What is the difference between == and === in JavaScript? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What is the difference between a variable and a constant?
Beta Was this translation helpful? Give feedback.
All reactions