Se ho un campo di testo input e dentro ci scrivo ad esempio 5+5, come faccio a valutare l'espressione?

Grazie