sometimes the script(in the web-browser) is packed in one line function a(b){if(c==1){}else{}}. I tried to find something that would show it in normal way
function a(b) {
if(c==1) {
}
else {
}
}
but didn’t found. Is there is some code or program that can do it?
There is an JSBeautifier to do it for you
And JSFiddle seems to do the same formatting as well.