Closed
Bug 1097761
Opened 11 years ago
Closed 10 years ago
Web console Template string syntax
Categories
(Firefox :: Untriaged, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: bunyamin_bogaz, Unassigned)
References
()
Details
User Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0
Build ID: 20141110195804
Steps to reproduce:
I am looking https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/template_strings page for versiyon 34.0 beta.
I using firefox 34.0 beta.
Actual results:
This sample is work.
var a = 5;
var b = 10;
console.log(`Fifteen is ${a + b} and not ${2 * a + b}.`);
// "Fifteen is 15 and not 20."
But this not work.
console.log( ' Fifteen is ${a + b} and not ${2 * a + b}. ' );
Expected results:
" ` " special characters work.
" ' " special characters not work.
| Reporter | ||
Updated•11 years ago
|
Keywords: conversion
Comment 1•11 years ago
|
||
I don't understand. You need backtick quotes for this to work. What *exactly* is broken for you?
Flags: needinfo?(bunyamin_bogaz)
Keywords: conversion
Comment 2•10 years ago
|
||
Since the reporter didn't provide the requested information by Gijs, I will mark this issue as RESOLVED INCOMPLETE. If you still encounter this problem, please feel free to reopen this bug, or file a new one.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Flags: needinfo?(bunyamin_bogaz)
Resolution: --- → INCOMPLETE
| Reporter | ||
Comment 3•10 years ago
|
||
Thank you for information. I understand characters syntax different between (')and (`). There is not problem.
Resolution: INCOMPLETE → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•