<html> | |
<head> | |
<style> | |
.used { | |
color: black; | |
} | |
.notUsed { | |
color: red; | |
} | |
</style> | |
<style> | |
#not-used { | |
color: red; | |
} | |
#also-used { | |
color: black; | |
} | |
</style> | |
</head> | |
<body> | |
<script> | |
function used1() { | |
window.a += 4; | |
} | |
function unused1() { | |
window.a += 1; | |
} | |
function unused2() { | |
window.a += 0.5; | |
} | |
function used2() { | |
window.a += 4; | |
} | |
function performActions() { | |
used1(); | |
used2(); | |
} | |
</script> | |
<div class="used">This is text.</div> | |
<div id="also-used">This is more text.</div> | |
</body> |