html
html
1
2
3
4
5
6
7
8
9
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
</body>
</html>
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
body {
}
Enter to Rename, Shift+Enter to Preview
js
js
1
2
3
4
5
let isSquare = (num, i = 1) => {
return num > i ? isSquare(num - i, i + 2) : (num == i);
}
console.log(isSquare(+prompt("Enter a number: ")));
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run