• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Assignment Operators

An assignment operator assigns a value to its left operand based on the value of its right operand. The most common assignment operator is =, which just assigns the value of an expression to a variable, like this line of code we’ve already seen:

var kilograms = pounds / 2.2046 


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint