Quantcast
Viewing latest article 2
Browse Latest Browse All 2

Understanding javascript void

I'm using some code to learn javascript OOP and it contains the following snippet that I'm trying to understand:

void window.setTimeout(function() {    $(".item").css("opacity", 1)}, 400);

I've never used the void operator, and from the documentation, can't understand why it's used in this instance?


Viewing latest article 2
Browse Latest Browse All 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>