Giter Site home page Giter Site logo

ts-basics-lab's Introduction

root

TypeScript - Basics

Introduction

This is your lab for today! ๐Ÿ˜‰

We have learned some super useful things about TypeScript in class. Please keep reading and work on the following iterations.

Requirements

  • Fork this repo
  • Clone this repo

Submission

  • Upon completion, run the following commands
$ git add .
$ git commit -m "done"
$ git push origin master

Instructions

Exercise 0 - Test

Will be explained in class

Exercise 1 - Basic Types

There are 6 small exercises within this. Hover over the red squigglies and fix each error that you see.

To run this part of the exercise, open your terminal and type

ts-node index.ts

By doing that it's running the uncommented lines in index.ts

import exercise1 from  './src/Exercise_1_Basic_Types/exercise1';
exercise1();

You will see a lot of errors in your terminal. Your task is to fix those errors by looking at the exercise1.ts file in Exercise_1_Basic_Types folder.

In case you're stuck for too long, uncomment these two lines in index.ts and comment out the two lines from above to see the solution.

// ======== Solution 1: Basic types ========
import solution1 from  './src/Exercise_1_Basic_Types/solution1';
solution1();

and run ts-node index.ts again to see the required output.

Repeat the same process for all the exercises

Exercise 2 - Functions

Exercise 3 - Classes

Exercise 4 - Interfaces

Exercise 5 - Code Flow

Happy Coding! โค๏ธ

ts-basics-lab's People

Contributors

manishpoduval avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.