- Edited
constants.js
import terminalKit from 'terminal-kit';
export const term = terminalKit.terminal;
functions.js
export const init = (term) => {
return 'Welcome to the mining game! Press "G" to start!'
}
gameEngine.js
import {init} from './functions.js'
export const startMiningGame = (term) => {
init()
}
solution.js
import {startMiningGame} from './gameEngine.js'
import {term} from './constants.js'
import {init} from './functions.js'
term(`Welcome to the mining game! Press 'G' to start!`)
Text "Welcome to the mining game! Press 'G' to start!" is successfully prints on the screen, but still i have the following issue:
4. init should accept a single parameter and use it to print the string Welcome to the mining game! Press 'G' to start!