The following piece of code rotates the image to certain angle, which gives us a feel in such a way that a circle rotates In the function that rotates the image, they have used triple "=" sign(===) and also along with a ","(better explanation in code below), can someone explain what happens in the function Thanks in advance
var c=$(".round-slider");
$(".circle-1").on("click", function () {
"240" === c.attr("data-rotate").slice(3) && c.attr("data-rotate", "deg120"),
"-120" === c.attr("data-rotate").slice(3) && c.attr("data-rotate", "deg-240"),
"0" === c.attr("data-rotate").slice(3) && c.attr("data-rotate", "deg120"),
"360" !== c.attr("data-rotate").slice(3) && "-360" !== c.attr("data-rotate").slice(3) || (c.addClass("stopTransition"),
c.attr("data-rotate", "deg0"),
setTimeout(function () {
c.removeClass("stopTransition"), c.attr("data-rotate", "deg120")
}, 10)),
setTimeout(function () {
c.addClass("slide-3"), c.removeClass("slide-1 slide-2")
}, 15)
})