# getLatestSyntaxVersion()

[**PromptScript API**](https://getpromptscript.dev/api-reference/index.md)

***

# Function: getLatestSyntaxVersion()

> **getLatestSyntaxVersion**(): `string`

Defined in: [core/src/syntax-versions.ts:206](https://github.com/mrwogu/promptscript/blob/49aa50f943865b985366c4eda6e95c5a31ef39a6/packages/core/src/syntax-versions.ts#L206)

Get the latest known syntax version.

## Returns

`string`