This is an example of how to write a frontmatter in JavaScript in a MDX file.
This is the whole file:
---js
{
a : 1+3,
b : 2
}
---
import { frontmatter} from '@/src/frontmatter'
{ JSON.stringify(frontmatter()) }
This is content
This is content