One of the simplest methods of programming the micro:bit is using the web based MakeCode by Microsoft.
Here is an example of a "Hello World" program written using MakeCode.
This is the code generated as Javascript.
basic.forever(() => {
basic.showString("Hello World!")
})
References