cover photo

COURSEWORK

Raviteja's CL-CY-001 course work. Lv 1

Raviteja MAUTHORACTIVE
This Report is yet to be approved by a Coordinator.

Raviteja\'s level 1 Work

14 / 9 / 2023


CL-CY: Level 1

Task 1 - JavaScript

In this task we were asked to learn about the basics of JS and create a small webpage that takes the names and marks of the students and calculates the

  • Percentage of each students
  • Class average
  • Rankings of the students

What did I learn?

Here, I learnt the basics of HTML, CSS and JS. Because without HTML we cant use JS in website. I learnt different tags, their functions and in JS, I learnt about different data types, loops, conditional statements, functions, objects and many more .

Here's the output of my website:

WhatsApp Image 2023-08-26 at 12 14 17

Task-2 Async JS

Here, I learnt the basics of Async JS and created a small webpage the prints the recipe of Biriyani using Callback and Async

WhatsApp Image 2023-09-14 at 09 58 44 WhatsApp Image 2023-09-14 at 09 58 45

Task-3 Promises

In this task we were asked to implement the above completed task using Promises.

Advantages of Promises over Callback

  • Easy debugging

  • Easy readability of the code

  • More organised program

  • Source code

Task-4 Getting familiar with Ubuntu

Getting familiar with Ubuntu and completing the following subtasks This was a new experience because I have never used any OS apart from Windows on PCs. At first I found it very hard to understand the basics of Ubuntu commands. But later on following the resources and few Youtube videos I got some idea regarding ubuntu commands.

  • Creating a folder :

Command: mkdir testR

  • Cd-Change directory:

Command: cd test

  • Creating 2600 folders

Command: mkdir M{1..2600}

  • Concatinating 2 file contents and then displaying contents of file raviteja and testR and printing them in a file named output

Command: cat raviteja.txt testR.txt>output.txt

  • Displaying the concatenated contents Command: cat output.txt

image image image WhatsApp Image 2023-09-14 at 10 33 08

Task-5 VI Text Editor

In this task, I learnt about a powerful text editor used in Ubuntu and Linux system. VI is a terminal application.

  • Commands :

  • To open an existing file: vi/path/to/file

Command mode :

Initially, when you open VI editor it will be in command mode. You cant just type any random things. It will result in unexpected behaviours.

  • Use x key to delete a character.
  • Use dd to delete an entire line.
  • To copy and paste , select the text and press v key and then press y to copy selected text. Then to paste press p key.

Insert Mode

  • To enter Insert mode, press i key
  • Then you can start typing just like a normal text editor
  • You can press escape to enter back to command mode
  • Type :wq and press enter to write the file to disk and quit vi.

Source file

UVCE,
K. R Circle,
Bengaluru 01