Skip to content
Open

Done #30

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
10 changes: 5 additions & 5 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@

{{content-for 'head'}}

<link rel="stylesheet" href="assets/vendor.css">
<link rel="stylesheet" href="assets/intro-to-es6.css">
<!-- <link rel="stylesheet" href="assets/vendor.css">
<link rel="stylesheet" href="assets/intro-to-es6.css"> -->

{{content-for 'head-footer'}}
</head>
<body>
{{content-for 'body'}}

<script src="assets/vendor.js"></script>
<script src="assets/intro-to-es6.js"></script>
<script src="assets/vendor.js"></script>
<script src="assets/intro-to-es6.js"></script>

{{content-for 'body-footer'}}
</body>
Expand Down
17 changes: 17 additions & 0 deletions app/lib/programmer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

class Programmer {
constructor(name,language="Ruby") {
this.name = name;
this.language = language;
}
evangelize(){
return `${this.name}: ${this.language.toUpperCase()} IS THE BEST LANGUAGE EVER`;
}
}
export function addJavaScript(){
return bestLanguages + ' JavaScript';
}
export var bestLanguages = ["Ruby","Elixir"];
export default Programmer;


17 changes: 17 additions & 0 deletions output.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
"use strict";

function Person(name, friends) {
this.name = name;
this.friends = friends;
}

Person.prototype.displayFriends = function () {
var _this = this;

console.log("Listing friends for " + this.name);
this.friends.forEach(function (friend) {
console.log(friend + " is friends with " + _this.name);
});
};
var steven = new Person("Steven", ["Jeff", "Josh", "Joe"]);
steven.displayFriends();