Loading Playground...
an
HCL GUVI
product
๐
an
HCL GUVI
product
Choose a Job
Paths
Learn to code
Exams
Tech Blog
Blog
Guilds
Games
Fun Friday
โ๏ธ
Sign in
C Language
C++
C#
Java
DBMS
Python
Go Lang
Data Structures
Operating System
Computer Network
Git Guide
Linux
โ Code Courses
|
โก
StudyTonight Online Compiler
C
C++
Python
Java
Node.js
Reset
โถ
Execute Code
main.js
UTF-8
// StudyTonight JavaScript Playground const greetings = ["Namaste", "Hello", "Hola", "Bonjour"]; const randomGreeting = greetings[Math.floor(Math.random() * greetings.length)]; console.log(`${randomGreeting}, welcome to StudyTonight!`); console.log("Memory Usage:", JSON.stringify(process.memoryUsage().heapUsed / 1024 / 1024, null, 2), "MB");
Standard Input (stdin)
Execution Output
// Output will be displayed here after you click "Execute Code"...