filmov
tv
JavaScript String, Binding Expression, Back Tick JavaScript Full Stack Tutorials in Depth!

Показать описание
JavaScript String, Binding Expression, Back Tick JavaScript Full Stack Tutorials in Depth!
JavaScript String Data Type
The string is a literal with a collection of characters, which includes alphanumeric and special characters.
- A string literal is enclosed in
a) Double Quote " "
b) Single Quote ' '
c) Back Tick ` `
- Single and double quotes switch between inner and outer strings.
- Single and double quote strings require much concatenation with the "+" operator for dynamic values and expressions.
- ES5+ versions support backtick which allows embedded expression by using data binding expression "${ }"
- Binding expression in a string is allowed only for "backtick".
Escape Sequence:
- Several special characters in a string can escape printing.
- You need "\" as an escape sequence character to print non-printable characters.
JavaScript String Data Type
The string is a literal with a collection of characters, which includes alphanumeric and special characters.
- A string literal is enclosed in
a) Double Quote " "
b) Single Quote ' '
c) Back Tick ` `
- Single and double quotes switch between inner and outer strings.
- Single and double quote strings require much concatenation with the "+" operator for dynamic values and expressions.
- ES5+ versions support backtick which allows embedded expression by using data binding expression "${ }"
- Binding expression in a string is allowed only for "backtick".
Escape Sequence:
- Several special characters in a string can escape printing.
- You need "\" as an escape sequence character to print non-printable characters.