Why does the push of an array in data result in the length of the array instead of the array?

I have a data ( add_all_available_area ) as follows:

export default {
    data(){
      return {
        ...
        add_all_available_area: []
      }

when I was at fetch_data,

console.log(this.add_all_available_area.push({name:"joe"}))

Why is the result 1 ?

instead of:

[{name:"joe"}]   



    
      
Feb.28,2021

push returns the length of the new array
Array


the return value is the length.


clipboard.png
push returns the length


this.add_all_available_area.push({name:"joe"})
console.log(this.add_all_available_area)
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b36ab8-2c014.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b36ab8-2c014.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?