Your Submissions
You haven't submitted any code for this challenge yet. Solve the problem by passing all the test cases, and your submissions will appear here.
xxxxxxxxxx
30
var assert = require('assert');
function howManySquares(n) {
return n;
}
try {
assert.deepEqual(howManySquares(12), 3);
console.log('PASSED: ' + 'howManySquares(12) should return 3');
} catch (err) {
console.log(err);
}
try {
assert.deepEqual(howManySquares(1), 1);
console.log('PASSED: ' + 'howManySquares(1) should return 1');
} catch (err) {
console.log(err);
}
try {
assert.deepEqual(howManySquares(966), 3);
console.log('PASSED: ' + 'howManySquares(966) should return 3');
} catch (err) {
OUTPUT
Results will appear here.