Skip to content

Lesson 3: Fund Me #770

Answered by cromewar
vicshi06 asked this question in Q&A
Jan 13, 2022 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

Hello @vicshi06 Yeah this is a difference, let's see.

The = is for assignation, you are saying that whatever is on the right side should be stored on the left side, example:

variable a = 50 this meas variable a <- 50

Quite easy right?

And += means add to the current value, let's suppose we have another variable called b which has the value of 5, so if we say:

b += 1 this means we are saying, add 1 to whatever is on variable b: 5 + 1.

I hope this info might help.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@vicshi06
Comment options

@cromewar
Comment options

@vicshi06
Comment options

@vicshi06
Comment options

@cromewar
Comment options

Answer selected by vicshi06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants