Zum Inhalt springen

JavaScript Basics

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

JavaScript is a versatile programming language that powers the interactive web. Let’s start with the fundamentals.

JavaScript is a high-level, interpreted programming language that runs in web browsers and on servers (via Node.js).

// Your first JavaScript code
console.log("Hello, World!");
  1. In browsers for client-side scripting
  2. On Node.js for server-side applications
  3. With Electron for desktop applications
  4. With React Native for mobile applications
<script>
console.log("Hello from inline script!");
</script>
<script src="app.js"></script>
// Single-line comment
/*
Multi-line
comment
*/
console.log("Regular message");
console.warn("Warning message");
console.error("Error message");
console.table({ name: "John", age: 30 });

Now that you understand the basics, move on to Variables to learn about data storage in JavaScript.