This is a super newbie JS question, but am wondering how to use the '$' when writing JS. For instance, I wrote a very simple JS if statement:
if (document.getElementById('D').value == '') {document.getElementById('D').value = 0;}
However, I saw someone else write it like this:
if (document.getElementById('D').value == '') {$('D').value = 0;}
Does '$' equal 'document.getElementById'? What are best practices when using '$'? Thanks!