How to get text from a text input

So I was wondering… how can you get text from a text input, like if you type something in it and then click a button to like make it talk with tts or something.

You can store strings in variables with prompt()

text = prompt("Enter Text")
alert(text)

My Project11-8-2021_12-49-29.wick (1.5 KB)
Information from https://www.wickeditor.com/#/learn/reference

In systematix os, the speechit app basically does that, feel free to dissect it
Heres the direct link since you wanted it