Check project status.

In this course:

In this course we will discuss the basics of the technologies that power the modern web. We will cover the basics of HTML and Typescript.
6 Lessons|12 Minute Read
Engineering
Course:
Coding the Web - The Basics

Lessons:

Typescript

In this lesson we will learn the basics of Typescript, a language that compiles to javascript, which runs natively on every web browser in the world.

Comment

A comment is used to tell the computer that some text is a note for the developer and the code should not be executed.

Primitives

Boolean
A boolean can be true or false.
Number
A number can be any number.
String
A string is a collection of characters.
Array
An array is a special data type that can store multiple values of different data types.
Object
An object is a bunch of primitive values put together to make a new data type.
Function
A function allows the programmer to abstract some code and run it somewhere else.
primitives
primitives

Variables

In typescript, you can declare a new variable using const or let.
const vs let
const vs let

Operators

Below are some of the most commonly used built-in operators.
operators
operators

Functions

A function consists of two main parts, the function parameters, and the function body.
function parts
function parts
After the programmer writes the code they want in the function body. They can specify what should be returned from the function using the return keyword.
Return statement
Return statement
function parameters
function parameters

Call a function

To call a function you can use the function name followed by () .
calling a function
calling a function

Get the results of a function

get function result
get function result

String Interpolation

Because engineers work with strings of characters a lot, typescript makes it easy to compose them together with string interpolation.
string interpolation
string interpolation

Types

  1. number (numeric value)
  2. string (a collection of characters)
  3. array (many values)
  4. boolean (true of false)
  5. any (any type)
In typescript, many types will be inferred by the system. Meaning you don't have to explicitly write them out. You can create your own types using the interface keyword.
custom type
custom type
Interested in learning more about design?
The Lab

Our Library

Raidon
433 Broadway Suite 404 New York, NY 10012
+1 (332) 333-2855
© 2024 Raidon.