Skip to content
Advertisement

How to Create More Than One Command in a jQuery Terminal Environment

My Current Project

I am trying to make a terminal-style webpage using jQuery Terminal.

My Problem

I cannot figure out how to add more than one command to the terminal.

Here’s my code:

JavaScript

Advertisement

Answer

Just add more properties to the first argument.

JavaScript
JavaScript

If you type add 10 15 it will print 25.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement