how to add list in javascript

C++
var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.push("Kiwi");var studentList = ['Jason', 'Samantha', 'Alice', 'Joseph'];

//Add a new student to the end of the student list
studentList.push('Jacob');list=["elements"]#add elements by seperating with commaprint(list)
Source

Also in C++: