Pregunta de entrevista de Dassault Systèmes

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