I am completely new to TypeScript, JavaScript, and Angular. As I follow some tutorials, I often encounter code snippets like the one below:
class Point {
constructor(x, y) {
this.x = x;
this.y = y;
}
toString() {
return `(${this.x}, ${this.y})`;
}
}
My question is about these back-ticks used in the code snippet above. Normally, I see single (' ') or double (" ") quotes being used for strings. Are these three versions functionally equivalent?
` == '
?` === '
?
Or is this specific to Angular/TypeScript syntax only?