10000 Transform 'let' in 'const' where needs be · KenyiCode/javascript-exercises@00407bd · GitHub
[go: up one dir, main page]

Skip to content

Commit 00407bd

Browse files
Transform 'let' in 'const' where needs be
1 parent deb698c commit 00407bd

25 files changed

+34
-34
lines changed

caesar/caesar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
let caesar = function() {
1+
const caesar = function() {
22

33
}
44

caesar/caesar.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
let caesar = require('./caesar')
1+
const caesar = require('./caesar')
22

33
describe('caesar', function() {
44
it('works with single letters', function() {

calculator/calculator.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
let calculator = require ('./calculator.js');
1+
const calculator = require ('./calculator.js');
22

33
describe('add', function() {
44
it('adds 0 and 0', function() {

fibonacci/fibonacci.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
let fibonacci = function() {
1+
const fibonacci = function() {
22

33
}
44

fibonacci/fibonacci.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
let fibonacci = require('./fibonacci')
1+
const fibonacci = require('./fibonacci')
22

33
describe('fibonacci', function() {
44
it('works', function() {

helloWorld/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This setup should be the same for all of the exercises. The plain javascript fi
1010

1111
Let's look at the spec file first:
1212
```javascript
13-
let helloWorld = require('./helloWorld');
13+
const helloWorld = require('./helloWorld');
1414

1515
describe('Hello World', function() {
1616
it('says hello world', function() {
@@ -26,7 +26,7 @@ For now you do not need to worry about how to write tests, but you should try to
2626

2727
so let's look at the javascript file:
2828
```javascript
29-
let helloWorld = function() {
29+
const helloWorld = function() {
3030
return ''
3131
}
3232

@@ -40,7 +40,7 @@ Just to make sure, in case you're confused at this point, the test is telling yo
4040

4141
this is what the final function should look like:
4242
```javascript
43-
let helloWorld = function() {
43+
const helloWorld = function() {
4444
return 'Hello, World!'
4545
}
4646

helloWorld/helloWorld.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
let helloWorld = function() {
1+
const helloWorld = function() {
22
return ''
33
}
44

helloWorld/helloWorld.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
let helloWorld = require('./helloWorld');
1+
const helloWorld = require('./helloWorld');
22

33
describe('Hello World', function() {
44
it('says hello world', function() {
55
expect(helloWorld()).toEqual('Hello, World!');
66
});
7-
});
7+
});

leapYears/leapYears.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
let leapYears = function() {
1+
const leapYears = function() {
22

33
}
44

leapYears/leapYears.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
let leapYears = require('./leapYears')
1+
const leapYears = require('./leapYears')
22

33
describe('leapYears', function() {
44
it('works with non century years', function() {

0 commit comments

Comments
 (0)
0