Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evaluating string interpolation for template literals #119

Open
73R3WY opened this issue Aug 20, 2018 · 0 comments
Open

Evaluating string interpolation for template literals #119

73R3WY opened this issue Aug 20, 2018 · 0 comments

Comments

@73R3WY
Copy link

73R3WY commented Aug 20, 2018

I encountered this issue while trying out the string interpolation feature of ES6

the code is

...
    if (unevaluated_lines) {
        let num_lines_message = (`${unevaluated_lines} answer ${unevaluated_lines == 1 ? "line was" : "lines were"} not evaluated.`)
        submit.reject(Error("Please give an evaluation to every answer line. " + num_lines_message))
...

but the saved string in the variable num_lines_message does follow spacing between string literals but the line of code unassigned to a variable works fine. See screenshot below:

screen shot 2018-08-20 at 2 12 47 pm

Using Google Chrome:
screen shot 2018-08-20 at 2 15 07 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant