Icontem

Question

Recommend this page to a friend!

      JS Classes blog  >  Notable JavaScript pa...  >  All threads  >  Question  >  (Un) Subscribe thread alerts  
Subject:Question
Summary:Is this really notable?
Messages:5
Author:Stephen Chapman
Date:2016-06-17 08:15:59
Update:2016-06-18 02:14:55
 

  1. Question   Reply   Report abuse  
Picture of Stephen Chapman Stephen Chapman - 2016-06-17 14:40:34
In what way does this differ from the formatable string syntax that was added to JavaScript last year? The functionality sounds very similar with only the syntax and specifics of the operation differing from the built in code.

  2. Re: Question   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2016-06-17 15:06:33 - In reply to message 1 from Stephen Chapman
I don't know about that formatable string syntax added to JavaScript. Do you have any page with specification?

  3. Re: Question   Reply   Report abuse  
Picture of Stephen Chapman Stephen Chapman - 2016-06-17 23:35:52 - In reply to message 2 from Manuel Lemos
MDN has a page on it at https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Template_literals

  4. Re: Question   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2016-06-18 01:26:32 - In reply to message 3 from Stephen Chapman
Oh, I see. This is like PHP. What this package does is more like sprintf. It can for instance display numbers and add spaces as padding on the left so it all has a specific number of digits independent of the number. So it seems different.

  5. Re: Question   Reply   Report abuse  
Picture of Stephen Chapman Stephen Chapman - 2016-06-18 02:14:55 - In reply to message 4 from Manuel Lemos
So not really alike at all then - apart from a slight similarity in their descriptions.