I'm new to learning javascript. I've followed a few basic tutorials. I'm trying to understand a script that I found. This script, in several places has something like the following:
var USE_CANVAS = !0;
if ("trydom" == window.location.hash || "#trydom" == window.location.hash) USE_CANVAS = !1;
I have no idea what this means? When I evaluate for this variable by simply typing it into the console, it returns 'true'. I can't find any references to this style online. I should mention that the script is dependent on underscore.js and d3.js, however i personally haven't found anything in these two libraries that looks anything like the above.
Another line that I also cannot explain has to do with the use of "question" and "colon" like so:
b.select(".y.axis").call(j)) : "pop" === a ? (c = "rMVMP", j.scale(C).tickV…
You can ignore the references to select,call and scale, since these are all d3js functions. I'm only pasting the second line because I'm not sure whether this is 'javascript' or a completely different language. The file however is named 'chart.js'.
Regards, Richard.