InterviewHubPRO
Section Overview
Q416

Question 416 of 521

Part 7: Execution Context, Functional JS & V8 Engine (404 - 463)

80%
JavaScript Internals (521 Qs)•Part 7: Execution Context, Functional JS & V8 Engine (404 - 463)

What is deno

Deno is a simple, modern and secure runtime for JavaScript and TypeScript that uses V8 JavaScript engine and the Rust programming language. It solves the inherent problems of Node.Js and has been officially released in May 2018. Unlike Node.JS, by default Deno executes the code in a sandbox, which means that runtime has no access to below areas:

  1. The file system
  2. The network
  3. Execution of other scripts
  4. The environment variables

Practical Code Example

typescript
// Deno: Secure JavaScript, TypeScript, and WebAssembly runtime built in Rust and V8:
// - Secure by default (no file, network, or environment access without flags)
// - Native TypeScript support without external bundlers:
// deno run --allow-net app.ts