" or '


#1

Whats the difference between " and ’ ?

Ive always used " when I code in any language, but after completing a bunch of different things here using ", this one https://www.codecademy.com/courses/learn-javascript-scope/lessons/scope/exercises/global-scope?action=lesson_resume&course_redirect=introduction-to-javascript won’t let me use " anymore.

This is kinda weird seeing as I have used " for all the other ones, and I’m now wondering if there even is a difference, and why won’t it let me use " anymore?


#2

there is no difference, you can use both (except when an exercise is being annoying)

the only difference is that if you want to use quotation marks in a string, you should enclose the string in apostrophes (and vice versa) so you don’t have to escape the quotation marks


#3

So all the exercises are made by different people, and they decide if its allowed or not? Is there any way for me to send feedback?


#4

maybe you can report a bug? It should be allowed to use both


#5

Will do, thanks for all the help man :stuck_out_tongue:


#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.