Skip to content

Commit

Permalink
Merge pull request #44 from arsenerei/patch-2
Browse files Browse the repository at this point in the history
Replace `export let` with `export var`
  • Loading branch information
swannodette authored Feb 3, 2017
2 parents e47f2d2 + cbb0389 commit 7417f29
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions content/guides/javascript-modules.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ Edit this file to look like the following:

[source,javascript]
----
export let sayHello = function() {
export var sayHello = function() {
console.log("Hello, world!");
};
----
Expand Down Expand Up @@ -206,10 +206,10 @@ Without quitting your REPL, edit `src/js/hello.js` to the following:

[source,javascript]
----
export let sayHello = function() {
export var sayHello = function() {
console.log("Hello, world!");
};
export let sayThings = function(xs) {
export var sayThings = function(xs) {
for(let x of xs) {
console.log(x);
}
Expand Down Expand Up @@ -298,15 +298,15 @@ Let's add a React JSX component to `src/js/hello.js`:

[source,javascript]
----
export let sayHello = function() {
export var sayHello = function() {
console.log("Hello, world!");
};
export let sayThings = function(xs) {
export var sayThings = function(xs) {
for(let x of xs) {
console.log(x);
}
};
export let reactHello = function() {
export var reactHello = function() {
return <div>Hello world!</div>
};
----
Expand Down

0 comments on commit 7417f29

Please sign in to comment.