Forum Discussion

francisd84's avatar
francisd84
Contributor
5 years ago

Javascript template litterals don't seems to work

According to documentation, JavaScript language in TC is supporting the template litterals to format strings https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqstring/format...
  • francisd84's avatar
    francisd84
    5 years ago

    Nevermind... I found the problem: need to replace " by ` for litterals to be taken into account.

     

    So: Log.Message(`This is a ${str}`) is working.

     

    Thanks a lot!