![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
When JavaScripting, I've often seen strings wrapped with single- quotes: ---------------------------------------------------------------- var language = 'English'; ---------------------------------------------------------------- However, I prefer double-quotes due to my experience with C++: ---------------------------------------------------------------- var language = "English"; ---------------------------------------------------------------- Is there a problem with this? Why is everyone else, including those who write popular libraries like Prototype.js, using single-quotes? |
![]() |
| Thread Tools | |
| Display Modes | |
| |