push() ile dizi sonuna obje ekleme örneği


( ! ) Notice: Undefined index: description in /home/prototurk.com/public_html/app/controller/demo.php on line 171
Call Stack
#TimeMemoryFunctionLocation
10.0001361296{main}( ).../index.php:0
20.0030443144require( '/home/prototurk.com/public_html/app/controller/demo.php' ).../index.php:101

Prototürk'e geri dön
const users = [
	{ name: "Tayfun Erbilen", age: 27 },
	{ name: "Mehmet Seven", age: 27 }
];

users.push({
	name: "Gökhan Kandemir",
	age: 30
})

console.log(users)