 ID of that saved value in return, you'd start by\\ndefining two ports: one for storing the value, and one for receiving the result:\\n\\n```elm\\nport saveToDB : String -> Cmd msg\\nport valueWasSaved : (String -> msg) -> Sub msg\\n```\\n\\nOn the JavaScript side, you'd setup these ports as follows:\\n\\n```js\\nconst { Gren } = require('./app.js');\\nconst db = require(\\\"db\\\");\\n\\nconst app = Gren.Main.init({});\\n\\napp.ports.saveToDB.subscribe((value) => {\\n  db.save(value, (err, id) => {\\n    i