Skip to content

Instantly share code, notes, and snippets.

@adeisbright
Last active September 19, 2021 04:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adeisbright/9e7da6aba82b0bb0b0cb24e1d038e6f5 to your computer and use it in GitHub Desktop.
Save adeisbright/9e7da6aba82b0bb0b0cb24e1d038e6f5 to your computer and use it in GitHub Desktop.
Get started with writing javascript programs

Bigjara Javascript : A Beginner Focused Approach

Lesson 1 : Getting Started

The lesson link

Lesson 2 :Variables

The lesson link

Lesson 3 : Data Types

The lesson link

Lesson 4 : Operators

The lesson link

Lesson 5 : Conditionals

The lesson link

Lesson 6 : Loops

The lesson link

Assignment

  1. Write a program that prints the first 100 members of the sequence 2 , -3 , 4 , -5 , 6

  2. Write a program that generates this sequence 0 , 5 , 10 , 15 , 20 , 25, ..., 80

  3. Write a program that grades a student using this grading system :

Score Grade

80 – 100 A

60 – 79 B

50 – 59 C

35 – 49 D

0 – 34 F

  1. Create variables to store the following information about a user with the following detail : Gender : f

Age : 35

country of origin : Burundi

Covid Patient : No

Networth : 250,000

@uwera123
Copy link

Thank you so much for the lesson it is clear and understandable

@RealSirryboi
Copy link

/*
*Description: Assignment to lesson 1 - 6.
*
*Author: Tajussirri Abdurrahman

  • For: Bigjara Online Class Assignment
    */

/* A program that prints the first 100

  • members of the sequence 2, -3, 4, -5, 6.
    */

for(let t = 2; t <= 100; t++) {
if(t%2 === 0){
console.log(t)
}else
console.log(-(t))
}
console.log("");

/* A program that generates this sequence 0,

  • 5, 10, 15, 20, 25, ..., 80.
    */

let z = 0
while(z <= 80){
console.log(z)
z += 5;

}

/*Write a program that grades a student

  • using this grading system:
  • Score grades
  • 80 – 100 A
  • 60 – 79 B
  • 50 – 59 C
  • 35 – 49 D
  • 0 – 34 F
    */
    let score = (prompt("Please Enter Score"));
    if(score >= 80){
    console.log("A")
    }
    else if(score >= 60){
    console.log("B")
    }
    else if(score >= 50){
    console.log("C")
    }
    else if(score >= 35){
    console.log("D")
    }
    else if(score <= 34){
    console.log("F")
    }

/* Create variables to store the following

  • information about a user with the
  • following detail:
  • Gender: F
  • Age: 35
  • country of origin: Burundi
  • Covid Patient: No
  • Networth : 250,000
    */

let Gender = "F"
let Age = 35;
let Country_of_Origin = "Burundi";
let Covid_Patient = "No";
let Networth = 250000;

@uwera123
Copy link

uwera123 commented Sep 19, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment