We substitute these parameters into html for the report for the year to the ruler.
let state = { year:1, population:100, immigrants:5, plague:0, starved:0, storage:2800, harvest:3000, yield:3, loss:200, estate:1000, market:19 }
let html = ` <p>In year ${state.year} the population is now ${state.population}. <li>${state.starved} people starved to death. <li>${state.immigrants} people entered the kingdom. <p>You have 2800 bushels in storage. <li>3000 bushels at 3 bushels per acre. <li>200 bushels eaten by rats. <p>The city owns 1000 acres of land. <li> 20 new acres at 19 bushels per acre. <li> 0 deaths from the plague.`
output.innerHTML = html
//wiki.ralfbarkow.ch/assets/pages/snippet-template/basicjs.html?snippet-template HEIGHT 200