Methods
empty()
To get the stack is not empty(true or false)
- Source:
Returns:
bool The stack is not empty
pop()
To remove the last value of stack
- Source:
push(value)
To push value
Parameters:
Name | Type | Description |
---|---|---|
value |
anyType | The value of you want to pushed the value |
- Source:
top()
To get the top value of stack
- Source:
Returns:
number The top value of stack