I tried now with VisualCode and it seems to be the same or similar problem.
I guess it is difficult to properly route the STDIN and STDOUT streams through whatever is done by Juno/Atom or VisualCode.
You could run your file in a shell/terminal from Juno with e.g.
C:\Users\YOUR_NAME\AppData\Local\Julia-1.3.1\bin\julia.exe .\test.jl
(Windows here, you may have another path)
This works with your small example.