Skip to content

Latest commit

 

History

History

0x13-javascript_objects_scopes_closures

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Project: 0x13. JavaScript - Objects, Scopes and Closures

This directory contains projects focused on understanding and implementing concepts related to objects, scopes, and closures in JavaScript. The tasks cover topics such as object creation, inheritance, closures, and prototypes.

Resources

Read or watch

Learning Objectives

General

  • Why JavaScript programming is amazing
  • How to create an object in JavaScript
  • What this means
  • What undefined means
  • Why the variable type and scope is important
  • What is a closure
  • What is a prototype
  • How to inherit an object from another

Tasks

Task File Description
0. Rectangle #0 0-rectangle.js Write an empty class Rectangle that defines a rectangle.
1. Rectangle #1 1-rectangle.js Write a class Rectangle that defines a rectangle with width and height.
2. Rectangle #2 2-rectangle.js Write a class Rectangle that defines a rectangle with width and height, and initializes them.
3. Rectangle #3 3-rectangle.js Write a class Rectangle that includes a method to print the rectangle using the character X.
4. Rectangle #4 4-rectangle.js Write a class Rectangle that includes methods to rotate and double the rectangle.
5. Square #0 5-square.js Write a class Square that defines a square and inherits from Rectangle.
6. Square #1 6-square.js Write a class Square that defines a square and includes a method to print the square using the character C.
7. Occurrences 7-occurrences.js Write a function that returns the number of occurrences of an element in a list.
8. Esrever 8-esrever.js Write a function that returns the reversed version of a list.
9. Log me 9-logme.js Write a function that prints the number of arguments already printed and the new argument value.
10. Number conversion 10-converter.js Write a function that converts a number from base 10 to another base passed as argument.
11. Factor index 100-map.js Write a script that imports an array and computes a new array with each value multiplied by its index.
12. Sorted occurrences 101-sorted.js Write a script that imports a dictionary of occurrences by user ID and computes a sorted list of occurrences.
13. Concat files 102-concat.js Write a script that concatenates two files.