Skip to content

Instantly share code, notes, and snippets.

View BeKnowDo's full-sized avatar
:bowtie:
Focusing

Cesar Perez BeKnowDo

:bowtie:
Focusing
View GitHub Profile
@BeKnowDo
BeKnowDo / wordmachine.js
Created June 12, 2017 18:15
Wordmachine
const wordMachine = (commands) => {
const operations = commands.split(' ');
let stack = [];
commandCount = 0;
operations.map((item, index) => {
let detectInteger = parseInt(item);
commandCount++;
//console.log(stack);