Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.lang.javascript > #8306

Re: cosa significa $ in Javascript

Path csiph.com!aioe.org!.POSTED.q9zRsxMKzEsIi5LhtlHG8A.user.gioia.aioe.org!not-for-mail
From son <son@mailnesia.com>
Newsgroups it.comp.lang.javascript
Subject Re: cosa significa $ in Javascript
Date Fri, 26 Jul 2019 09:41:08 +0200
Organization Aioe.org NNTP Server
Lines 19
Message-ID <qheaqt$16mv$2@gioia.aioe.org> (permalink)
References <qheaip$16mv$1@gioia.aioe.org>
NNTP-Posting-Host q9zRsxMKzEsIi5LhtlHG8A.user.gioia.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=iso-8859-15; format=flowed
Content-Transfer-Encoding 8bit
X-Complaints-To abuse@aioe.org
User-Agent Mozilla/5.0 (Windows; U; Windows NT 6.1; it; rv:1.8.1.24) Gecko/20100228 Thunderbird/2.0.0.24 Mnenhy/0.7.6.666
Content-Language it_IT
X-Notice Filtered by postfilter v. 0.9.2
Xref csiph.com it.comp.lang.javascript:8306

Show key headers only | View raw


Il 26/07/2019 09:36, son ha scritto:
> Cosa significa il dollaro in questo codice di esempio?
> 
> function Person(first_name, last_name) {
>      this.first_name = first_name;
>      this.last_name = last_name;
> 
>      this.displayName = function() {
>          console.log(`Name: ${this.first_name} ${this.last_name}`);
>      };
> }
> 
> Non mi pare che c'entri con jquery.
>

Come non detto, trovato:
https://www.quora.com/What-does-mean-in-JavaScript-5
Serve per inserire variabili/codice JS in una stringa delimitata da `.
Il mio titolo non è preciso; avrei dovuto scrivere: cosa significa ${}?

Back to it.comp.lang.javascript | Previous | NextPrevious in thread | Find similar


Thread

cosa significa $ in Javascript son <son@mailnesia.com> - 2019-07-26 09:36 +0200
  Re: cosa significa $ in Javascript son <son@mailnesia.com> - 2019-07-26 09:41 +0200

csiph-web