Category: JavaScript

Tensorflow.js tf.constraints.Constraint Class

Tensorflow.js is an open-source library developed by Google for running machine learning models and deep learning neural networks in the browser or node environment. The tf.constraints.Constraint class is used to extend the serialization.Serializable class. Moreover, it is the base class in favor of the functions which enforce constraints on the weight values.This tf.constraints.Constraint class contains […]

Continue Reading

10 Most Asked ES6 Interview Questions & Answers For Developers

When JavaScript came into the picture of the programming world, the name was chosen for marketing reasons. At that time Java was getting popular all around the world (but you better know both are different). Later it was submitted to ECMA (European Computer Manufacturers Association) to standardize the language and its specification.  Later it was […]

Continue Reading

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

7 Tips to Improve JavaScript Performance

When you’re building a website the most important thing that matters a lot for the users is the performance of the website. It is very frustrating for the users when they have to wait for a long time for a webpage to reload.  A lot of websites are built on JavaScript and accelerating the performance […]

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