Notes: 1  Gain on disposal of investments and interest income are not considered as revenue because they are not earned from the principal business activity of ABC PLC, i.e. selling stationery goods.
To assign values to the various positions in an array, you do it in the normal way: aryNums[0] = 10; Here, a value of 10 is being assigned to position 0 in the array called aryNums. Again, the square brackets are used to refer to each position.
So we see that the value â6â was appended to the existing array values. 4. Insert value in an array using insert() method. We can use the insert() method to insert a value at any index of the array. In the above example, using insert() method, the value 0 was inserted at index 0.