Create

Create a new function via the project node of the TwinCAT HMI project.
Create 1:

A function can be created based on TypeScript or JavaScript. Both have the same technical options and are very similar in terms of programming. Due to the better Visual Studio programming support offered by Visual Studio, TypeScript should be selected for new functions. Enter a name for the file.
Create 2:

A function consists of a TypeScript/JavaScript file and an associated JSON file, which defines engineering properties. Double-click the JSON file in the Solution Explorer to configure the function and its parameters.
Create 3: