Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

` ` in javascript

// ` ` or a string literal allows you to include javascript in a string easily

a = 3

//instead of:
console.log("the value of a is " + a)

//you can use a string literal:
console.log("the value of a is ${a}")



//you can use javascript
a = 3
b= 5
console.log("a is ${a}, b is ${b}, and a plus b is ${a + b}.")
Comment

PREVIOUS NEXT
Code Example
Javascript :: angular create guard 
Javascript :: javascript seconds to date 
Javascript :: set cursor type javascript 
Javascript :: generate random hex 
Javascript :: array int to string javascript 
Javascript :: You need to authorize this machine using `npm adduser` 
Javascript :: mongoose update createdAt 
Javascript :: vue fetch api 
Javascript :: js filter undefined from array 
Javascript :: Redirect replacement in react 
Javascript :: Uncaught (in promise): NullInjectorError 
Javascript :: first duplicate javascript 
Javascript :: load +main.js with system.import 
Javascript :: chart js x axis start at 0 
Javascript :: js check tab active 
Javascript :: jquery keep scroll position 
Javascript :: javascript wait for multiple promises 
Javascript :: javascript if field exists 
Javascript :: javascript remove duplicate letters in a string 
Javascript :: javascript beforeunload 
Javascript :: javascript querySelectorAll id ends with 
Javascript :: javascript replace all occurrences of string 
Javascript :: node js query get :id param 
Javascript :: ... unicode 
Javascript :: javascript parse json 
Javascript :: Get the Status Code of a Fetch HTTP Response 
Javascript :: get days in current month using moment.js 
Javascript :: how to send header in axios 
Javascript :: get document jquery 
Javascript :: react navigation navigator types 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =