Infosys interview question

Prerequisite for a JSOM code?

Interview Answer

Anonymous

Apr 1, 2018

I got confused and answered,"sp.js"(it was correct probably).