Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Javascript
javascript detect square number
Yummy Sushi
Programming language:
Javascript
2021-03-13 03:37:40
0
Q:
javascript detect square number
Charmi Sapariya
Code:
Javascript
2021-01-20 05:54:00
var isSquare = function (n) { return n > 0 && Math.sqrt(n) % 1 === 0; };
2
Tags
number
javascript
script
Related
js math function that returns smallest value
sqrt javascript
javascript round to 2 digits
square root js
find least common multiple javascript
find the vowel js
rounding off numbers javascript
javascript find a digit in str
square root in javascript
javascript squared
javascript round to nearest 10
root of any number javascript
sum prime numbers javascript
javascript square root
js draw square to canvas
first n even numbers sum javascript
how to get the square root in js
get the whole value of a number javascript
how to square a value in javascript
New to Communities?
Join the community