Symentix interview question

Basics of JavaScript questions like all basic methods