if the function is inside the () and followed by () ex:
( fucntion(){
})
()
This means that we declared the function and run it immediately
~ inside if statement means “not”, and works similar to !. ex:
if(~tagsArray.indexOf(item)) {
something;
}
means if no items inside the array do something
Advertisements