Skip to content

Commit

Permalink
Add sync-input that is required for input in javascript problems
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Turov committed Aug 25, 2021
1 parent 60797f1 commit 1281d27
Show file tree
Hide file tree
Showing 8 changed files with 144 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/projects/javascript/coffee_machine/stage2/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@



const input = require('prompt-sync')
const input = require('sync-input')

cups = Number(input("Write how many cups of coffee you will need: "))
console.log('For ' + cups + " cups of coffee you will need:")
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/projects/javascript/coffee_machine/stage3/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const input = require('prompt-sync');
const input = require('sync-input');

var cups, water, milk, beans, needs;

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/projects/javascript/coffee_machine/stage4/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const input = require('prompt-sync');
const input = require('sync-input');

var money = 550;
var water = 400;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/projects/javascript/coffee_machine/stage5/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const input = require('prompt-sync');
const input = require('sync-input');

var money = 550;
var water = 400;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1281d27

Please sign in to comment.