repl.it
@SteffanyBrown/

Beginner Code Poem Template

Nodejs

Play with these basic pieces of a code poem in Node.js

fork
loading
Files
  • index.js
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
let variableName = "The tyrant fears... "
console.info(variableName);

function nameOfFunction(word1, word2) {
  let sentence = word1 + " " + word2
  return sentence;
}

let result = nameOfFunction("the", "poet");
console.info(result);


// Same example with different variable names:
let anotherName = "The tyrant fears... "
console.info(anotherName);

function nameOfFunction(aWord, anotherWord) {
  let sentence = aWord + " " + anotherWord
  return sentence;
}

let phrase = nameOfFunction("the", "poet");
console.info(phrase);
Fetching token
?