Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

js escape characters

JS Escape Characters
' — Single quote
" — Double quote
 — Backslash
 — Backspace
f — Form feed

 — New line

 — Carriage return
	 — Horizontal tabulator
WebsiteSetup.org - Beginner’s Javascript Cheat Sheet 7
v — Vertical tabulator
Comment

JavaScript Escape Character

const name = 'My name is 'Peter'.';
console.log(name);

//Here are other ways that you can use :

Code	Output
"	include double quote
	include backslash

	new line

	carriage return
v	vertical tab
		horizontal tab
	backspace
f	form feed
Comment

What are escape characters in javascript

// What are escape characters in javascript
Escape characters (Backslash) is used when working with special characters like single quotes, double quotes, apostrophes, and ampersands. Place backslash before the characters to make it display.
console.log("This is + plus character") // This is + plus character
Comment

Escape Character Javascript

console.log("Welcome to "my website"!");
Comment

PREVIOUS NEXT
Code Example
Javascript :: open cypress window 
Javascript :: javascript compare number to string 
Javascript :: jest enzyme test receive submit 
Javascript :: how to get unique values from array in javascript without duplicate value 
Javascript :: vscode react cannot find moudle when import image 
Javascript :: javascript array push element at index 
Javascript :: how to convert array into string in js 
Javascript :: countdown using vue 
Javascript :: express uncaughtException 
Javascript :: react native get timezone 
Javascript :: flutter regular expression for arabic and english characters 
Javascript :: append a query string to the url react 
Javascript :: MVC 5 controller return json value to view 
Javascript :: how to print a line in javascript 
Javascript :: nidejs aws sdk s3 copy 
Javascript :: javascript, digit thousand formatting, number formating js, regexp, number comma seperation js 
Javascript :: exclude file types from formater vscode 
Javascript :: how to check all values of an array are equal or not in javascript 
Javascript :: bulk create in sequelize 
Javascript :: scroll to top javascript 
Javascript :: jquery telephone input mask 
Javascript :: javascript check image src 
Javascript :: regex is not empty string 
Javascript :: javascript null true or false 
Javascript :: canvas js filter greyscale 
Javascript :: detect logged user wordpress javascript 
Javascript :: javascript find object in array 
Javascript :: how to collect keys using lodash javascript 
Javascript :: JS automate a click 
Javascript :: df.saveto json 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =