What is the difference between ‘ and ` ? : javascript

05/02/2018


I’ve been told I need to look into react for work and for the life of me could not figure out why a line of code referencing a state object as a url would work when I copied it from GitHub, but not when I typed the exact same line below. Then I had the memory of this happening to me in the past with another language, fixed the mistake and all was well. Only it’s impossible to google the difference between ‘ and ` seemingly, so Reddit could anyone lend a hand? I presume it’s something to do with using the returned value concatenated with the first half of the string as a single string for a url, but a more definitive explanation would really help.

قالب وردپرس