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

escape sequence in js

	Backspace
f	Form Feed

	New Line

	Carriage Return
		Horizontal Tabulator
v	Vertical Tabulator
'	Single quote
"	Double quote
	Backslash
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 :: divide symbol to string in javascript 
Javascript :: how to check if an element is in array javascript 
Javascript :: useeffect componentdidmount 
Javascript :: nodejs temp file 
Javascript :: add a class in react 
Javascript :: js get elements in array from x to y 
Javascript :: JQuery .hasClass for multiple values in an if statement 
Javascript :: npm fund 
Javascript :: history react router 
Javascript :: what is event loop in javascript 
Javascript :: Declare and Initialize Arrays in javascript 
Javascript :: firebase rules for specific user 
Javascript :: google pay in react js 
Javascript :: how to open cypress 
Javascript :: take a screenshot javascript of canvas 
Javascript :: Group item by date 
Javascript :: react-native-shadow-generator 
Javascript :: react native svg size 
Javascript :: javascript weakmap 
Javascript :: error: Error: Unable to resolve module `crypto` from `node_modulescrypto-jscore.js`: crypto could not be found within the project. 
Javascript :: new date javascript 
Javascript :: foreach await js 
Javascript :: shopify image pciker 
Javascript :: word table to json 
Javascript :: nested json array 
Javascript :: service worker.js 
Javascript :: nodejs: express: package for Router 
Javascript :: how to pass props in react 
Javascript :: page scrolling react js 
Javascript :: what is react js 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =