Skip to content

Instantly share code, notes, and snippets.

View dikshagoyal26's full-sized avatar

Diksha Goyal dikshagoyal26

View GitHub Profile
@dikshagoyal26
dikshagoyal26 / machine.md
Last active February 12, 2023 05:08
Machine Coding Interviews

Frontend Interviews

  • One of the round is machine coding interview round
  • Some companies take machine coding only in Vanialla JS, HTML & JS. (Uber)
  • While other takes for the tech stack you are being hired for

What can be asked to build in machine coding round of interviews?

  • Can be asked any type of app
  • TODO list
  • Comment engine
  • E-comm website
@dikshagoyal26
dikshagoyal26 / storage.md
Created September 14, 2020 03:52
Storage Methods

There are three different types of storage in Javascript.

  1. Local Storage
  2. Session Storage
  3. Cookies

Local Storage

Data stored in local storage has no expiration time, its available until the user clears the browser cache. Data in local Storage is also not affected in case of page reloads or closing and reopening of tabs/browser. While data stored while browsing in a private tab is cleared when the tab is closed. local storage can only be read by the client-side

@dikshagoyal26
dikshagoyal26 / markdown.md
Created July 26, 2020 16:12
Markdown SHortcuts

#Heading 1 ##Heading 2 ###Heading 3 ####Heading 4 #####Heading 5 ######Heading 6


Paragraph

Object

Object is a non primitive data type in javascript.

Creating a JavaScript Object

With JavaScript, one can define and create own objects.

There are different ways to create new objects:

  1. Define and create a single object, using an object literal.
  2. Define and create a single object, with the keyword new.
  3. Define an object constructor, and then create objects of the constructed type.
{
"current_user_url": "https://api.github.com/user",
"current_user_authorizations_html_url": "https://github.com/settings/connections/applications{/client_id}",
"authorizations_url": "https://api.github.com/authorizations",
"code_search_url": "https://api.github.com/search/code?q={query}{&page,per_page,sort,order}",
"commit_search_url": "https://api.github.com/search/commits?q={query}{&page,per_page,sort,order}",
"emails_url": "https://api.github.com/user/emails",
"emojis_url": "https://api.github.com/emojis",
"events_url": "https://api.github.com/events",
"feeds_url": "https://api.github.com/feeds",