Deno Hello World! 

   
   

Output:

Click on RUN button to see the output

Deno Online Compiler

Write, Run & Share Deno code online using OneCompiler's Deno online compiler for free. It's a modern, secure, and feature-rich runtime for JavaScript and TypeScript. Getting started with OneCompiler's Deno editor is easy and fast. The editor shows sample boilerplate code when you choose Deno as the language and start coding.


About Deno

Deno is a secure runtime for JavaScript and TypeScript, built on V8 and Rust. It is designed by the creator of Node.js to improve upon its shortcomings, offering modern features with better security and developer experience.


Key Features

  • Secure by default: No file, network, or environment access unless explicitly granted.
  • Built-in TypeScript support: No need for a separate compiler.
  • Uses modern ES modules: No need for package.json or node_modules.
  • Ships with a built-in formatter, linter, and test runner.
  • Supports Web APIs: Similar to browsers, Deno includes APIs like fetch().

Syntax Help

Hello World


Variable Declaration

KeywordDescriptionScope
varOld way of declaring variablesFunction or global
letBlock-scoped variableBlock scope
constConstant, cannot be reassignedBlock scope

Arrow Functions

Arrow functions provide a more concise syntax for defining functions.

Syntax:



Template Literals (Backtick Strings)

Interpolation


Multi-line Strings



Arrays

An array is a collection of values.

Syntax:


Spread operator with Arrays



Object Destructuring

Example:



Loops

For Loop


While Loop


Do-While Loop



Classes

Deno supports ES6 classes, allowing for object-oriented programming.

Example:



Deno is a modern and secure alternative to Node.js, offering built-in TypeScript support and a more streamlined developer experience. With its security-first approach and native ES module support, it is a great choice for modern JavaScript and TypeScript applications.



© Copyright 2025 One Compiler Pvt. Ltd. | Privacy Policy | Terms & Conditions