How do we update a value in an array?

By accessing the value by its index, then assigning another valueWe can't update values in arraysBy using the var keywordBy using parentheses ( ) to access the value

By accessing the value by its index, then assigning another value.