What is push in Java script

Please help me because I am a learner

13th Sep 2023, 11:02 AM
Prince Kumar Shaw
1 Answer
+ 5
Prince Kumar Shaw , push() is quite similar to append() in python... As it will add the element at the end of the list... Here a sample code for implementation of push(), var course=["Python","C","C++","Java"]; course.push("c#"); console.log(course); Here I pushed " c# " into the course and it will get added at last...
13th Sep 2023, 11:25 AM
Riya - avatar