FundMe contract - += vs = in fund
              
              #55
            
            
                  
                    
                      tomasignacioc
                    
                  
                
                  started this conversation in
                General
              
            Replies: 1 comment 2 replies
-
| You'll want to do use  
 Here is a scenario: I  
 Does that make sense? Do you have the timestamp where it magically changes? Maybe we should add that to  | 
Beta Was this translation helpful? Give feedback.
                  
                    2 replies
                  
                
            
  
    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.
Uh oh!
There was an error while loading. Please reload this page.
-
In the line 34 of the FundMe contract, first Patrick writes it like this:
But out of nowhere it changes to:
I know how the operators works in JavaScript, but here I left the function with only the "=" and it works fine. So what is the difference?
Beta Was this translation helpful? Give feedback.
All reactions