📜 Certifications
{
"course": NgRx_Store_&_Effects,
"institution": "Ultimate Courses",
"date": "August 2021",
"id": 15
},
{
"course": RxJS_masterclass,
"institution": "Ultimate Courses",
"date": "July 2021",
"id": 14
},
{
"course": JS_advanced,
"institution": "Udemy",
"date": "July 2021",
"id": 13
},
{
"course": Ultimate_Angular,
"institution": "Ultimate Courses",
"date": "July 2021",
"id": 12
},
{
"course": UX_UI_design,
"institution": "Udemy",
"date": "July 2021",
"id": 11
},
{
"course": RxJS_basics,
"institution": "Ultimate Courses",
"date": "June 2021",
"id": 10
},
{
"course": TypeScript_master_class,
"institution": "Ultimate Courses",
"date": "June 2021",
"id": 9
},
{
"course": TypeScript_basics,
"institution": "Ultimate Courses",
"date": "May 2021",
"id": 8
},
{
"course": Design_thinking,
"institution": "Udemy",
"date": "May 2021",
"id": 7
},
{
"course": SASS_workflow,
"institution": "Udemy",
"date": "May 2021",
"id": 6
},
{
"course": Angular_4+,
"institution": "Code with Mosh",
"date": "April 2021",
"id": 5
},
{
"course": JavaScript_es6,
"institution": "Udemy",
"date": "March 2021",
"id": 4
},
{
"course": Redux_architecture,
"institution": "Code with Mosh",
"date": "July 2021",
"id": 3
},
{
"course": React_library,
"institution": "Code with Mosh",
"date": "June 2020",
"id": 2
},
{
"certification": Full-stack_web_development,
"institution": "Coding Dojo",
"date": "June 2020",
"id": 1
}
🍕 Class
interface SizesInterface {
availableSizes: string[];
}
abstract class Sizes implements SizesInterface {
constructor(protected sizes: string[]) {}
set availableSizes(sizes: string[]) {
this.sizes = sizes;
}
get availableSizes() {
return this.sizes
}
}
interface PizzaInterface extends SizesInterface {
readonly name: string;
toppings: string[];
updateSizes(sizes: string[]): void;
addTopping(topping: string): void;
}
export class Pizza extends Sizes implements PizzaInterface {
public name: string;
toppings: string[] = [];
constructor(readonly name: string, sizes: string[]){
super(sizes);
}
public updateSizes(sizes: string[]) {
this.sizes = sizes;
}
public addTopping(topping: string) {
this.toppings.push(topping);
}
}
const pizza = new Pizza('pepperoni', ['small','x-large']);
pizza.addTopping('pepperoni');
pizza.updateSizes(['large']);
class Coupon {
static allowed = ['pepperoni','large'];
static create(percentage: number) {
return `PIZZA_COUPON_${percentage}%_OFF`;
}
}
Coupon.create(25);
From: 15 November 2024 - To: 22 November 2024
No activity tracked