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.0002362088{main}( ).../index.php:0
20.0033443936require( '/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