+ 2

What is $ indicates in JS

$

26th Jun 2020, 3:26 AM
Rishabh Giri
Rishabh Giri - avatar
5 Answers
+ 4
Hi there 👋 The $ is an identifier in JavaScript For more results https://www.thoughtco.com/and-in-javascript-2037515
26th Jun 2020, 3:30 AM
Nilesh
Nilesh - avatar
+ 4
In which code do you see $?
26th Jun 2020, 6:39 AM
Gordon
Gordon - avatar
+ 3
It is used in jquery mainly... I have never used this symbol when I only need js... It mainly shortens the function In case if you need this https://stackoverflow.com/questions/3360858/why-use-dollar-sign-in-the-name-of-javascript-variables
26th Jun 2020, 3:29 AM
ヽ(^。^)ノ✨ヽ(^。^)ノ
ヽ(^。^)ノ✨ヽ(^。^)ノ - avatar
+ 2
Rishabh Giri In Javascript, $ is just another character to use when naming variables or functions, like _ or q . –
26th Jun 2020, 3:50 AM
Amberk Jillian
Amberk Jillian - avatar
+ 1
For string interpolation, where the content of an identifier will be expanded to replace the identifier's name. const org = "SoloLearn Community"; const year = 2020; alert(`Š ${year} ${org}`);
26th Jun 2020, 4:10 AM
Ipang