Things are getting GUI!!!!!!!

Cant interact with apps without GUI.

In other news, I can now create a user interface to go alongside code that I actually programmed. GUI might not mean much to you, but it is how you order your food on Uber Eats, pick a movie to watch on Netflix, or even simply send a text through iMessage. GUI or graphical user interface for short, is what all apps use to entice the users to make selections on their app or website to make the many lines of code execute.

  1. Describe one thing you’re learning in class today.

Today in class we learned how to create elements directly from JavaScript from the DOM. This is important because it is the foundation for creating a GUI to go alongside your code!

2. Whats the difference between: function person (){}, var person = Person(), and var person = new Person()?

To be quite literal the main and striking difference are the first example is a function, while the other two are simple variables. If we take a closer look we notice that var person = person (), is making a variable called person and making it equal to a function called person. the only downside is there may not be a function called person if you haven’t created one.

3. what is the difference between “attribute” and “property” ?

Properties are characteristics of an object, where an attribute is referring to additional information of an object.

4. What language constrictions do you use for iterating over object properties and array items?

If you want to iterate over array items you could use a simple for loop. A for loop will take all the items in the array and will read them however you want them to be read. You can set up a loop to read every single item in the array list, or you can even have it read every other one. For loops are useful because once you have an item being checked out by the for loop you can add things that you want to happen to each or just some of the items in the array.

5. What is the event Loop?

It is a built in mechanism which handles the the execution of multiple chunks of your program over time, each time invoking the JavaScript engine,

6. What is the difference between call stack and task queue?

a task queue is a queue of task that need to get done. a stack is a routine of task that need to get done. I think of a task queue as a function and a call stack a function that calls multiple functions in order to get the job done. the call stack will be very simple with very little code inside, at least to the visible eye.

7. What are the differences between ES6 class and ES5 function constructors?

According to google, ES6 class allows the developers to instantiate objects using the new operator. ES5 function constructors focus on how the objects are instantiated. ES^ is for more specific work and ensures that the developer that keyword used inside this constructor only refers to the object that is being created by the developer.

Lost in the world.