You are viewing a single comment's thread. Return to all comments →
JavaScript
function squares(a, b) { // Write your code here let squares = 0 for (let i = a; i <= b; i++) { if (Math.sqrt(i) % 1 == 0) { i += Math.sqrt(i) * 2 squares++ } } return squares }
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and Squares
You are viewing a single comment's thread. Return to all comments →
JavaScript