Opengist

Explore

  • All gists
  • Topics
  • Users
Give feedback on the new UI Powered by Opengist ⋅ 65ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login Register

All gists

All Recently liked Recently forked
Recently created Least recently created Recently updated Least recently updated
meson

meson / gistfile1.txt

Last active 58 minutes ago
0 0 1
1 // 1. Variables and Data Types
2 const greeting = "Hello, JavaScript world!"; // String (cannot be reassigned)
3 let counter = 10; // Number (can be changed)
4 const isLearning = true; // Boolean
5
6 console.log(greeting);
7
8 // 2. A Simple Function
9 // This function takes a name as an input and returns a personalized message
10 function greetUser(userName) {