Variables
Louiswealthy opened this issue · comments
Louiswealthy commented
How do i differentiate variables ?
Jacob Herper commented
Can you explain a bit more what you mean by that? Assigning a value to a variable makes it differentiable from other values.
const a = 5
const b = 2
const sum = a + b
Is a simple example of that.
Akash Raj commented
If you assign a value to a variable without quotes, it will be treated as a number.
example: let a = 11
And if you assign a value to a variable inside quotes, it will be treated as a string.
example: let b = "This is string"
Jacob Herper commented
Closing as this was answered above.