diff --git a/app/lib/output.js b/app/lib/output.js new file mode 100644 index 0000000..3918c74 --- /dev/null +++ b/app/lib/output.js @@ -0,0 +1 @@ +"use strict"; diff --git a/app/lib/programmer.js b/app/lib/programmer.js index e69de29..c101a2f 100644 --- a/app/lib/programmer.js +++ b/app/lib/programmer.js @@ -0,0 +1,22 @@ +class Programmer{ + constructor(name, language = "Ruby"){ + this.name = name; + this.language = language; + } + + evangelize() { + var string = `${ this.name }: ${ this.language.toUpperCase() } IS THE BEST LANGUAGE EVER` + return string + } +} + +bestLanguages = ["Ruby", "Elixir"] + +export function addJavaScript(languageArray){ + var newArray = languageArray.slice(0); + newArray.push('JavaScript'); + return newArray; +} + +export var bestLanguages; +export default Programmer;