Guys so I'm new to javascript, I'm trying to do simple things and I found this piece of code for changing divs(which i named k) color when clicking it but I don't really understand what is it I know few things but one thing I can't find is that question mark. Can someone explain what is it and what it does. Thank you
var x = document.getElementById("k"),
change = false;
x.onclick = function() {
change = !change;
x.style.background = change? "red": "lime";
}
x.style.background = "lime";