why no parseInt for if statements
var a = $('.box').width();
var b = $(document).height();
So far I have done this through trial and error, but now I'm curious to
understand why in jquery we use if (b < 20) , however we need parseInt to
calculate var c = a + b
No comments:
Post a Comment