Dassault Systèmes Interview Question

Write a js program to check if the given number is a perfect square or not without using js-inbuilt functions.