Day 1 - Starting Strong

🤔 DSA Problems solved today : 0💸 Money Earned : 0💪🏻 Workout : No
Day 1 - Starting Strong

Day 1 - Starting Strong

Today i finally finished this website. Now its time to start the journey.

Today's TODO's are:

Complete the website

SS-VI assessment test

Internship work

Do some DSA


🌅

Woke Up - 5:30 PM

Checked the phone for any important notifications and there were a lot of them.

6:00 - 8:00 PM Internship Work

Created 4 logo for client.

8:00 - 10:00 PM

Worked on this website.

Then there was a soft skill assessment test which i gave barely made it in time. 11:00 pm onwards i was working on this website.

So, far i was following Hunx DSA Tutorial.

Learned to create custom array & array method in javascript. i created 4 methods till now push, get, pop, shift.

class myArray {
  constructor() {
    this.length = 0;
    this.data = {};
  }
  push(item) {
    // console.log(item);
 
    this.data[this.length] = item;
 
    // console.log("-------");
    // console.log(this.data);
 
    this.length++;
 
    // console.log("-------");
    // console.log(this.length);
 
    return this.length;
  }
 
  get(index) {
    return this.data[index];
  }
 
  pop() {
    const lastItem = this.data[this.length - 1];
    // console.log(lastItem);
 
    delete this.data[this.length - 1];
    this.length--;
 
    return lastItem;
  }
 
  shift() {
    const firstItem = this.data[0];
 
    for (let i = 0; i < this.length; i++) {
      this.data[i] = this.data[i + 1];
    }
 
    delete this.data[this.length - 1];
 
    return firstItem;
  }
}
 
const myNewArray = new myArray();
 
myNewArray.push(123);
myNewArray.push("orange");
myNewArray.push("Dick");
myNewArray.push("Lemon");
myNewArray.push(true);
 
console.log("--------------------------------------");
 
console.log("PRE --", myNewArray);
 
// console.log(myNewArray.get(1));
 
// myNewArray.pop();
 
console.log(myNewArray.shift());
 
 
console.log("AFT --", myNewArray);
 

Complete the website

SS-VI assessment test

Internship work

Do some DSA

So todays summary is :

Daily Summary

  • DSA Problems Solved: 0
  • Income Earned:0
  • Workout Completed: No

See you guys tomorrow 🙋🏻‍♂️