Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let n = 89; //任意の整数
const n = 89; //任意の整数

let isPrime = true;
if (n <= 1) {
Expand Down
2 changes: 1 addition & 1 deletion docs/1-trial-session/08-loop/_samples/is-prime/script.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let n = 57; // 任意の整数
const n = 57; // 任意の整数

let isPrime = true;
if (n <= 1) {
Expand Down
4 changes: 2 additions & 2 deletions docs/1-trial-session/08-loop/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ document.write(product);
変数の、最後に代入した値のみを保持する性質を利用します。

```javascript
let n = 57; // 任意の整数
const n = 57; // 任意の整数

let isPrime = true;
if (n <= 1) {
Expand Down Expand Up @@ -276,7 +276,7 @@ if (isPrime) {
前項で割ったあまりが0でないこととの `&&` (AND) をとることで帰納的に求めることもできます。

```javascript
let n = 89; // 任意の整数
const n = 89; // 任意の整数

let isPrime = true;
if (n <= 1) {
Expand Down