Usage of the backtick character (`) in JavaScript

This is a feature called template literals. They were called “template strings” in prior editions of the ECMAScript 2015 specification. Template literals are supported by Firefox 34, Chrome 41, and Edge 12 and above, but not by Internet Explorer. Examples: http://tc39wiki.calculist.org/es6/template-strings/ Official specification: ECMAScript 2015 Language Specification, 12.2.9 Template Literal Lexical Components (a bit dry) Template …

Read more

Difference between single and double quotes in Bash

Single quotes won’t interpolate anything, but double quotes will. For example: variables, backticks, certain \ escapes, etc. Example: $ echo “$(echo “upg”)” upg $ echo ‘$(echo “upg”)’ $(echo “upg”) The Bash manual has this to say: 3.1.2.2 Single Quotes Enclosing characters in single quotes (‘) preserves the literal value of each character within the quotes. …

Read more