Category: JavaScript-Questions

Infix to Postfix Converter using JavaScript

var stackarr = [];  var topp = -1;  function push(e) {    topp++;    stackarr[topp] = e;}  function pop() {    if (topp == -1)        return 0;    else {        var popped_ele = stackarr[topp];        topp–;        return popped_ele;    }}  function operator(op) {    if (op == ‘+’ || op == ‘-‘ ||         op == ‘^’ || op == ‘*’ ||         op == ‘/’ || op == ‘(‘ ||         op == ‘)’) {        return true;    }    else        return false;}  function precedency(pre) {    if (pre == […]

Continue Reading

Bottom Half Hidden Text Revealer on Mouse Over in CSS

                                     * {             padding: 0;             margin: 0;             box-sizing: border-box;             overflow: hidden;             background-color: black;         }                    .upper_text,         .pointer {             position: fixed;             top: 40vh;             left: 40vw;             width: 350px;             color: chartreuse;             font-size: 50px;             cursor: all-scroll;         }                    .upper_text {             clip-path: polygon(0% 0%,                  100% 0%, 100% 50%, 0% 50%);         }              […]

Continue Reading