Quantcast
Channel: Understanding javascript void - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Understanding javascript void

$
0
0

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 all articles
Browse latest Browse all 2

Trending Articles





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