Does Swift provide the ability to evaluate Swift code as Javascript? I would like to create an application that can run Swift code.
No, it is not. There is a Swift JIT open via REPL, but it is not (currently not less) intended for use in applications.
I think eval () is not running at the moment. For REPL Shell, see Swift Blog here.