# Inline scripts QuickAdd supports the usage of inline scripts in [[TemplateChoice|Template Choices]] and [[CaptureChoice|Capture Choices]]. Inline scripts allow you to execute any JavaScript code you want. You are given the [[QuickAddAPI|QuickAdd API]], just as with user scripts. In inline scripts, it is passed in as ``this``, as can be seen in the example below. ```` ```js quickadd const input = await this.quickAddApi.inputPrompt("✍"); return `Input given: ${input}`; ``` ```` When you are making an inline script, remember to write ``js quickadd`` and not just ``js`` when denoting the language - otherwise you're just inserting a code snippet. If you want to insert something, simply ``return`` it. The return type __must__ be a string