Will preorder, inorder, or postorder traversal print a heap in sorted order? Why or why not? code example
Example: javascript check if is array
var colors=["red","green","blue"];
if(Array.isArray(colors)){
//colors is an array
}
var colors=["red","green","blue"];
if(Array.isArray(colors)){
//colors is an array
}