+ 3
Code Reduction
Is there a place where I can go to find custom handy functions I can use to reduce my code? It doesn't have to just be Javascript, just in general really. Handy functions similar to this example: function id(str){ return document.getElementById(str); } //Which allows you to simply get an element by id with reduced code
5 Réponses
+ 2
Use a library, for this case (JavaScript) use library like jQuery.
syntax to get element by Id.
$('#elementId')
+ 13
@Gavin Christians I'm lost. So, so lost. But I've got to "Just Keep Swimming" 😁
+ 2
Thanks Eranga F
+ 2
Hey Jafca, did you get a chance to check out my Finding Dory game? :)
+ 2
@Jafca your reply is funny as hell 😂