KW Online Tools Zone
Knowledge Walls
View All Tools Home
HOW TO PUSH AND POP METHOD IN JAVASCRIPT ARRAY OBJECT WITH EXAMPLE
[Javascript editor]
Run
Share Link
Clear
HTML [Ctrl+Enter] - to run
CSS [Ctrl+Enter] - to run
Javascript [Ctrl+Enter] - to run
var companyList = new Array(); companyList.push("Microsoft"); companyList.push("Sun Micro System"); companyList.push("Hyundai"); companyList.push("TaTa"); document.write(companyList); document.write("
"); companyList.pop(); document.write(companyList); document.write("
"); companyList.pop(); companyList.pop(); document.write(companyList); document.write("
");
OUTPUT
Copyright © 2021 Knowledge walls, All rights reserved
Copyright © 2021 Knowledge walls, All rights reserved