NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

Hoisting:
JavaScript Hoisting refers to the process whereby the interpreter appears to
move the declaration of functions, variables or classes to the top of their scope, prior to execution of the code.

Objects:
in javascript we have 8 data types.7 are primitive datatypes and one non primitive.
object is a non primitive data type that allows us to store multiple collection of data.
objects store data in the form of key value pair.
in nested objects we can declare one object in another object.
we can also declare functions in objects.

classes:
class is like a blueprint of the object.we can create objects from the class.
whenever we are creating a class we always need to add a method called constructor.


in constructor we can assign the properties.constructor method initializes new object of the class.
and it is called whenever the object of that class is created.

scope:
scope in javascript refers to the availability or acaessibilty of the variables.
in javascript we have 2types of scope
1.global scope and
2.local scope
global scope means declaring the variable outside of the loop or function.
if the variable is declared in global scope then we can access that varaible anywhere in the code.



local scope means the declaring the variable inside the function.
the variable whichi is declared in local scope can only be accessed in that function.

MVC:
this is the flow of the mvc pattern.
lets take an example of shooping website.here we are adding an item to cart.
model defines what data that the app should contain.if the data is modified then the model
will notify the view or controller to modify the same.

view defines how the app's data should be dispayed.

controller contains the logic that updates the model or view in response to input from the users of the app.
so basically controller mediates between the view and model.

so here we can see this example like
if the user clicks on the add to cart button then the view sends the request to the controller
then the controller interacts with the model to modify the data like adding that item to the cart
after the data in the model gets updated then the view also got updated based on that changes made.

if **we want to just update the view to display the data in a different format, e.g., change the item order to alphabetical, or lowest to highest price.
In this case the controller could handle this directly without needing to update the model.


devops:
Initially two different people worked on the software.The developer wrote the code and the operational specialist was responsible for deployment.
Both operated as separate entities, in-the-dark and had a little-to-no idea of how the other party organized things at their end.

DevOps movement emerged as this aspiration to ‘break the wall’ and “close the gap” between the two IT functions – “developers” and “operations”.
And this gradual unification proved to be highly beneficial both for businesses, and IT specialists.
Under a DevOps model, development and operations teams are no longer isolated.Sometimes, these two teams are merged into a single team where the engineers
work across the entire application lifecycle, from development and test to deployment to operations, and develop a range of skills not limited to a single function.
because of this the speed will be increased so that we can innovate for customers faster and also adapt to changing markets better.
and also we can build more effective teams under devops cultural model,which emphasizes values such as ownership and accountability. Developers and operations teams collaborate closely, share many responsibilities, and combine their workflows.
This reduces inefficiencies and saves time for e.g. it reduces the handover periods between developers and operations like writing code that takes into account the environment in which it is run.
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.