79585258

Date: 2025-04-21 20:17:32
Score: 1
Natty:
Report link

At the time of this post, the accepted solution includes double quotes, which may not be desirable. A workaround to solving the hyphen evaluating as a minus sign in a situation where the double quotes are not desired, append the string with the invisible character [U+200E] as so:

stringId = `[U+200E]${id}`

This will give a string output instead of evaluating the interpreted expression.

Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Max