HexLibraryHexLibrary
</> HexCodeSign inSign up
PythonJavaScriptTypeScriptCC++JavaPHPGoRustRubyBashSQLLuaPerlCOBOLPascalDelphiFortranDartSwiftC#JuliaGroovyRElixirHaskellKotlinScalaClassic ASPClipperMS-DOS
LESSONS
Introduction to JavaScriptVariables (let / const)Data TypesOperatorsStringsArraysObjectsConditions (if / else)Loops (for / while)FunctionsArrow Functions (=>)Array Methods (map / filter / reduce)
REFERENCE
📖 Overview
🖥️ Output & Console
📦 Variables
🔢 Numbers & Math
✍️ String
📋 Array
🗂️ Object
🔁 Condition & Loop
🧩 Function
🔄 Type & Conversion
JavaScript›REFERENCE

JavaScript — Command Reference

JavaScript's most used commands, methods, and structures — each with syntax, explanation, working example, and real-world usage. Choose a category, click a command, try the example yourself.

9 categories · 46 commands

🖥️

Output & Console

Printing values, concatenating strings, and checking types.

console.log()Template literal ( `` )typeof
3 commands →
📦

Variables

Storing values: let, const, and var.

let / constvar (legacy)
2 commands →
🔢

Numbers & Math

Numeric operations, rounding, and Math functions.

Math.round()Math.floor() / Math.ceil()Math.max() / Math.min()Math.random()+3
7 commands →
✍️

String

Text length, conversion, slicing, splitting, and searching.

.lengthtoUpperCase() / toLowerCase()trim()slice()+3
7 commands →
📋

Array

Working with ordered data collections and powerful array methods.

arr []push() / pop()shift() / unshift()indexOf() / includes()+7
11 commands →
🗂️

Object

Data structured with key-value pairs.

object {}Object.keys() / values() / entries()
2 commands →
🔁

Condition & Loop

Decision-making and repetition structures.

if / else? : (ternary operator)switchfor+2
6 commands →
🧩

Function

Defining and reusing your own commands.

functionArrow function (=>)Default parameter...rest / ...spread
4 commands →
🔄

Type & Conversion

Type conversion and equality check.

Number()String()Boolean() / truthy== vs ===
4 commands →
HexLibraryHexLibrary

Learn programming more clearly. Every command is explained line by line with colors, reinforced with runnable exercises, test your code instantly — all in one place, free.

Learn

  • Home
  • Languages & Lessons
  • HexCode

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Use

Other Projects

  • HexToolz
  • Free Service Manuals
© 2026 HexLibrary · The clearest way to learn code