Skip to content

Commit

Permalink
abstract greetings
Browse files Browse the repository at this point in the history
  • Loading branch information
MylesBorins committed Aug 6, 2020
1 parent bd359c5 commit 636499e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 7 additions & 0 deletions greetings.js
@@ -0,0 +1,7 @@
export default [
'howdy',
'hi',
'sup',
'shalom',
'yoooooooooo'
];
8 changes: 1 addition & 7 deletions index.js
@@ -1,10 +1,4 @@
const greetings = [
'howdy',
'hi',
'sup',
'shalom',
'yoooooooooo'
];
import greetings from './greetings.js'

function random (range) {
return Math.floor(Math.random() * range);
Expand Down

0 comments on commit 636499e

Please sign in to comment.