9: Different Types of Operators in JavaScript | JavaScript Tutorial | Learn JavaScript | mmtuts




Different Types of Operators in JavaScript | JavaScript Tutorial | Learn JavaScript | mmtuts. In this JavaScript tutorial I will teach you about JavaScript operators, that are used to perform logical operations.

➤ GET ACCESS TO MY LESSON MATERIAL HERE!

First of all, thank you for all the support you have given me!

I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you!

I am now using Patreon to share improved and updated lesson material, and for a small fee you can access all the material. I have worked hard, and done my best to help you understand what I teach.

I hope you will find it helpful 🙂

Material for this lesson: https://www.patreon.com/posts/javascript-9-18213459

Original source


5 responses to “9: Different Types of Operators in JavaScript | JavaScript Tutorial | Learn JavaScript | mmtuts”

  1. I am creating a rotating css backgroudn with js but i have a problem.
    The problem is that only the transition goes smooth between the first and second image but not from the seccond to the first.
    Can you or someone else help me.

    JavaScript:
    <script type="text/javascript">
    var num = 1;
    window.onload = function() {
    toggleBackground();
    }
    var startBackgroundLoop = setInterval(function(){
    toggleBackground();
    }, 5000);
    function toggleBackground() {
    if (num === 1) {
    num += 1
    setTimeout(function(){
    document.body.style.backgroundImage ='url(img/2.jpeg)'
    }, 5000);
    } else{
    num-= 1
    setTimeout(function(){
    document.body.style.backgroundImage ='url(img/4.jpeg)'
    }, 5000);
    }
    }

    Css Code:
    body {
    background-image: url("img/1.jpeg");
    background-size: 100%;
    background-position: top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    transition: all ease-in-out 2000ms;
    -webkit-transition: all ease-in-out 2000ms;
    -moz-transition: all ease-in-out 2000ms;
    -o-transition: all ease-in-out 2000ms;
    }

Leave a Reply