Closed tsop14 closed 9 years ago
I prefer single quotes all-the-things ... However they are not valid JSON:
Rule of thumb:
use single-quotes everywhere. except when constructing a string which includes styles or properties which are themselves denoted by single-quotes: e.g:
var str = "<a class='big' href='/mylink'>click me</a>"
; And when manually creating a JSON object/file
@dwyl/summer
Double quotes "" for html Single quotes '' for everything else
???