push() kullanım örnekleri


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

Prototürk'e geri dön
let sports = ['soccer', 'baseball']
let total = sports.push('football', 'swimming')

console.log(sports); // ['soccer', 'baseball', 'football', 'swimming']
console.log(total); // 4