Frontend Development

0.0(0)
studied byStudied by 2 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/37

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

38 Terms

1
New cards

Closure

a programming concept that allows functions to access variables outside their lexical scope

2
New cards

Selfinvoking functions

Functions executed right after being created let a = { function (x, y) {return x + y;} ()};

3
New cards

Anonymous function

Inside a variable declaration

4
New cards

For loop

For ([initialization]; [condition]; [final expression]){…}

5
New cards

For…in

Iterates over all enumerable keys in an object —> for (variable in object){…}

6
New cards

Optional chaining

Prevents errors when ascessing properties of null or undefined —> guard clause : user?.isNotLoggedIn && login();

7
New cards

Nullish coalescing

Provides a default value only when the left side is null or undefined —>  age ?? 18

8
New cards

custom errors

throw new Error(”error”);

9
New cards

Non-primitive data types

To store multiple and complex values —> object

10
New cards

Hoisting

Js automatically moves declarations of variables and functions to he top

11
New cards

Arrays

In js they can have mixed data types, .push() to add something to an array

12
New cards

Comparison operators

are they equal in value or === are they equal in value and type

13
New cards

Try catch

Try : contains the cpde that might throw exception, catch : code to handle the exception, finally: code that always runs

14
New cards

Even handler 

Used to respond to certain actions that might come from the user or the webpage, ex: 1. Get html element 2. Add event listener form.addEventListener(’submit’, function (event) {event.preventDefault()});

15
New cards

Modifying DOM

DOM : document object model, js can modify the DOM with getelementbyid to change the content of exixting html elements or createelement to ceate a new html element 

16
New cards

Document fragments 

Minimal cod obj that has no parent, creates nodes that can be assembled and inserted together giving reasurance and minimizing DOM manipulation overhead

17
New cards

Asynchronous programming 

Tasks are executed idependently, allowing non blocking execution and allowing js to handle multiple tasks efficiently

18
New cards

Async/ await

Functions can be declared as asynchronous and use await to return a promise 

19
New cards

Promise

Js object that will return a value at some point, promise → .then (the promise is resolved) → promise (can be in pending) → .catch ( the promise is rejected) 

20
New cards

Callback function

Function passed as an argument to anther function, used to be the way of handling asynchronous tasks but can create nested callback hell

21
New cards

Constructor functions

Creates function objects that execute in the global scope only let car = new Function(a, b , return a+b);

22
New cards

Super()

Used to call the constructor of its parent class

23
New cards

Object.create()

Sets up inheritance via prototype link, const animal = {speak()…} const dog = object.create(animal); now dog can use the cariables and functions inside of the animal object

24
New cards

Prototypal inheritance

Let us reause code between similar objects, every obj in js has an internal prototype linked to another obj.

25
New cards

<section>

Part of a page that covers grouping of a specific theme or idea ex: books of an specific genre

26
New cards

<article>

independent, self contained content that could stand alone ex: blog posts

27
New cards

<div>

Basic container just to group things together, default display : block

28
New cards

Importance of different header using

They go from 1 to 6, 1 being the most important; using them correctly makes a page easier to read and better structured, shows the important contents of a page and allows search eangines to easily look thru your website for specific keywords searched by the user.

29
New cards

Embedded multimedia

Media elements provide built in attributes that let the user control the media, they improve user experience by giving them control 

30
New cards

Fallback content or alternative media

Fallback content and alternative media ensure that all users can access multimedia, even if their browser doesn’t support certain formats. Improving accessibility and ensuring a smooth experience across different devices.

31
New cards

Pseudo-classes

Target a state of elements like :hover or :active

32
New cards

Pseudo-elements

Target a piece of an element like the first line of a paragraph, slelected like this  ::first-child

33
New cards

Responsive design 

Important since webpages should be able to be accessed from any device, we can use media quaries to stablish a layout for an specific screensize, we can also use percentages ex: width : 80% they keep the intended proportions in different screen sizes

34
New cards

Semantic tags 

improves accessibility by helping screen readers and search engines understand the content structure. It also enhances SEO and maintains better code organization, making it easier to read and maintain.

35
New cards

semantic Tags vs Css styling

  • HTML tags provide semantic meaning and help with screen reader navigation, making content accessible.

  • CSS styling ensures visual accessibility (contrast, legibility, and focus), improving the overall user experience for everyone.

36
New cards

Selectors in css

identify HTML elements to apply styles.

  • Universal Selector: *

  • Type (Element) Selector: element

  • Class Selector: .class

  • ID Selector: #id

  • Pseudo-class Selector: :pseudo-class

  • Pseudo-element Selector: ::pseudo-element

37
New cards

Specificity css

determines which CSS rule wins when multiple rules target the same element, based on a hierarchy of rules. This and selectors help making your styling efficient, organized, and predictable. Inline > id > class > element

38
New cards

let and const

Both are block scoped but let lets u modify the value while const doesnt const is used when we know the value shouldnt be modified both are hoisted.