API Docs for: 1.0.0
Show:

Stack Class

Defined in: default.js:89
Module: Intro2JavaScript

A push-pop stack.

Constructor

Stack

() Void

Defined in default.js:89

Returns:

Void:

Item Index

Methods

Properties

Methods

clearStack

() Void

Defined in default.js:105

Clears the push-pop stack.

Returns:

Void:

pop

() Mixed

Defined in default.js:114

Fetches the most recently added item from the top of the stack.

Returns:

Mixed:

push

() Void

Defined in default.js:123

Stores the item on the top of the stack.

Returns:

Void:

Properties

stack

Array

Defined in default.js:97

The stack itself.