Improve the sample code

This commit is contained in:
Adorian Doran 2024-10-28 16:08:46 +02:00
parent 48f9f072b4
commit bda8173932

View File

@ -5,10 +5,13 @@ import OptionsWidget from "../options_widget.js";
const SAMPLE_LANGUAGE = "javascript"; const SAMPLE_LANGUAGE = "javascript";
const SAMPLE_CODE = `\ const SAMPLE_CODE = `\
function test(name) { const n = 10;
console.log("Works"); greet(n); // Print "Hello World" for n times
console.info("Test");
// Hello world. function greet(times) {
for (let i = 0; i++; i < times) {
console.log("Hello World!");
}
} }
` `