Transform 'var' in 'let'

This commit is contained in:
Étienne Boisseau-Sierra
2018-06-08 20:44:45 -04:00
parent b99fe58185
commit 3a9251d55e
27 changed files with 31 additions and 31 deletions
+3 -3
View File
@@ -10,7 +10,7 @@ This setup should be the same for all of the exercises. The plain javascript fi
Let's look at the spec file first:
```javascript
var helloWorld = require('./helloWorld');
let helloWorld = require('./helloWorld');
describe('Hello World', function() {
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
so let's look at the javascript file:
```javascript
var helloWorld = function() {
let helloWorld = function() {
return ''
}
@@ -40,7 +40,7 @@ Just to make sure, in case you're confused at this point, the test is telling yo
this is what the final function should look like:
```javascript
var helloWorld = function() {
let helloWorld = function() {
return 'Hello, World!'
}
+2 -2
View File
@@ -1,5 +1,5 @@
var helloWorld = function() {
let helloWorld = function() {
return ''
}
module.exports = helloWorld
module.exports = helloWorld
+1 -1
View File
@@ -1,4 +1,4 @@
var helloWorld = require('./helloWorld');
let helloWorld = require('./helloWorld');
describe('Hello World', function() {
it('says hello world', function() {