A Collection of Code Snippets in as Many Programming Languages as Possible
This project is maintained by TheRenegadeCoder
Welcome to the Hello World in Wren page! Here, you'll find the source code for this program as well as a description of how the program works.
Hello World in Wren was written by:
If you see anything you'd like to change or update, please consider contributing.
Personally, I'm getting hints of Java and Python here just in terms of syntax.
At any rate, let's break it down. Obviously, we only have one line, but it's at least a little more interesting than most scripting languages.
For starters, we have the built-in
System class. This class
comes with the core module along with a few other goodies like
Now, one of the functions of
String using the
toString functionality, a method available to all objects.
So, basically we call the static method print of the
which prints the input to the user. How cool is that?
You can download a copy of Wren to your local machine, grab a copy of Hello World in Wren, and then run this:
Alternatively, you can use an online Wren interpreter.