This document provides an introduction to JavaScript, covering key concepts such as data types, console logging, comments, arithmetic operators, and object properties and methods. It highlights the importance of built-in objects and offers additional resources for further learning. The document serves as a foundational overview for beginners in JavaScript programming.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
2 views
INTRODUCTION TO JAVASCRIPT
This document provides an introduction to JavaScript, covering key concepts such as data types, console logging, comments, arithmetic operators, and object properties and methods. It highlights the importance of built-in objects and offers additional resources for further learning. The document serves as a foundational overview for beginners in JavaScript programming.
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1
INTRODUCTION TO JAVASCRIPT
Review Let’s take one more glance at the concepts we just learned:
Data is printed, or logged, to the console, a panel that
displays messages, with console.log(). We can write single-line comments with // and multi-line comments between /* and */. There are 7 fundamental data types in JavaScript: strings, numbers, booleans, null, undefined, symbol, and object. Numbers are any number without quotes: 23.8879 Strings are characters wrapped in single or double quotes: 'Sample String' The built-in arithmetic operators include +, -, *, /, and %. Objects, including instances of data types, can have properties, stored information. The properties are denoted with a . after the name of the object, for example: 'Hello'.length. Objects, including instances of data types, can have methods which perform actions. Methods are called by appending the object or instance with a period, the method name, and parentheses. For example: 'hello'.toUpperCase(). We can access properties and methods by using the ., dot operator. Built-in objects, including Math, are collections of methods and properties that JavaScript provides.
Here are a few more resources to add to your toolkit:
Codecademy Docs: JavaScript
Codecademy Workspaces: JavaScript
Make sure to bookmark these links so you have them at your