Skip to content

Instantly share code, notes, and snippets.

@glaizawagner
glaizawagner / variable-scope.md
Last active July 28, 2019 03:39
Checkpoint 11 - Variable scope

1. What is scope? Your explanation should include the idea of global vs. block scope.

  • A scope is the visibility of your code in the entire program. This scope can be global or block.
  • “Global scope” means you declared a variable anywhere in the code that’s outside of a function. It means you can access it anywhere, including the inside of the function.
  • For example, you declare let myName = Glaiza as a global variable, then you use that myName inside a block and give another value as myName=Ana. When the systems are done processing that block, the current value for myName will be Ana. It takes precedence over the global variable. But, if you pass another value for myName=Marie outside the block, it will be the new value for myName. The result for a global variable will keep on changing every time we alter the code or pass it a new value.
  • “Block scope” means declaring variables within a curly brace {…}. The let and const are block scope and they are introduced after var global vari
@glaizawagner
glaizawagner / frequent-word-analyzer.md
Created July 28, 2019 05:32
Checkpoint 13 - Iterating through objects
@glaizawagner
glaizawagner / how-web-apps-work.md
Created September 26, 2019 21:22
Checkpoint 3 - How web apps work

Write an analogy to describe the relationship between clients and servers.

  • client/server refers to a relationship between two networked computers in which one machine (the client) initiates a connection and makes requests of the other machine (the server), which in turn to fulfill those requests. Servers exist to provide a service which clients consume.

It is like borrowing a book in the library, you as the customer(client) will write a request that you want to borrow a Math123 book then the person-in-charge(server) will get that request then behind the scenes that person will ask his assistant to look for it, and when that assistant will found it, he/she give it to the person-in-charge(server) then it will be pass to the customer(client).

@glaizawagner
glaizawagner / portfoliowireframe.md
Last active October 7, 2019 19:38
portfolio wireframe - checkpoint 1
  1. Write your bio, headline, and contact info for your portfolio.

BIO:

I began my career as an IT Analyst, moving up to an IT Instructor, and eventually being recruited to work in Singapore as an IT Executive.

I started web developing, without any prior knowledge. My love of creative, intuitive smartphone apps inspired me to take this training to get to a new level and build apps.

It’s like a dream turning into reality. I will always be grateful and honored that I found Thinkful and for the opportunity they gave me. Thinkful helped me unlock my potential as well as encouraging me that I can achieve my dream.