Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.35 KB

string-templates.md

File metadata and controls

35 lines (24 loc) · 1.35 KB

string templates

Open in playground

export const main = asl.deploy.asStateMachine(async () => {
  let variable = "some var";

  return {
    hello: `hello ${variable}`,
  };
});

escaped characters

Open in playground

export const main = asl.deploy.asStateMachine(async () => {
  let variable = "some var";

  return {
    hello: `hello ${variable}`,
    singleQuote: `hello ' + ${variable}`,
    curlyBrace: `hello }{} + ${variable}`,
    backSlash: `hello \\ + ${variable}`,
    emoji: `hello 🙂 + ${variable}`,
  };
});