Pop function
The pop Variable stack function is as follows:
pop ()
Removes the top item of a stack and returns it.
Parameters:
This function does not take any parameters.
Returns:
The item at the top of the stack.
Example:
stack.push("one")
stack.push("two")
stack.push("three")
three = stack.pop()
two = stack.pop()
one = stack.pop()
// stack is now empty. one is "one", two is "two" and three is "three"
stack.push("two")
stack.push("three")
three = stack.pop()
two = stack.pop()
one = stack.pop()
// stack is now empty. one is "one", two is "two" and three is "three"
Related topic
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*