for..of is very similar to for..in with slight modification.
for..of iterates through list of elements (i.e) like Array and returns the elements (not their index) one by one.
Note that the variable ‘value’ outputs each element in the array not the index.