MV Learning Javascript: Notetag single line metadata

Hello!

I want to do a single line metadata.

For example:

JavaScript:
$dataEnemies[enemyid].meta.boss

How would I make the game set this data in notetags, for <boss>?

Also, using SRD HudMaker, I need to be able to check the metadata and return the Troop's boss metadata, so I can use a larger "boss" hp bar rather than a smaller one.
I want to do a single line metadata.

For example:

JavaScript:
$dataEnemies[enemyid].meta.boss
How would I make the game set this data in notetags, for <boss>?
the game doesnt set that data by itself. if you have a <boss> notetag then the enemy's data entry has that in its meta property. not the other way around. $dataEnemies[enemyid].meta.boss would be reading it, not setting it

Original thread: https://forums.rpgmakerweb.com/threads/learning-javascript-notetag-single-line-metadata.177515/