- Fork and clone this repository
- Place your answers inside of this markdown file (answers should be about 1-3 sentences each)
- Submit a pull request to submit the assignment
-
What is Big-O Notation?
-
What does it mean when an algorithm is
O(n)
time andO(1)
space? -
What is specificity in CSS?
-
How does CSS Bootstrap work? (In other words, how do you setup and use bootstrap?)
-
What does AJAX stand for and what does it do?
-
What is a Promise in JavaScript?
-
What is hoisting?
-
Define closure, and give an example of closure in JavaScript or Python.
-
What is the difference between a Python dictionary and a JavaScript object?
-
Show an example of string interpolation in both JavaScript and Python.
-
When would you use *args and **kwargs in Python, what is the difference between them?
-
What is OOP?
-
What is an instance method in Python?
-
Write a Python equivalent for each of the following three JavaScript functions:
I.
javascript
function filterAndSquareEvenNumbers(nums) { return nums.filter(num => num % 2 === 0).map(num => num ** 2); }
python
# your code goes here
II.
javascript
function filterOutFalsyValues(arr) { return arr.filter(val => val);
python
# your code goes here
III.
javascript
function swapKeysAndValues(obj) { const newObj = {}; for (k in obj) { newObj[obj[k]] = k; } return newObj; }
python
# your code goes here
BONUS QUESTIONS
- When you type
google.com
into your browser's URL bar and hit enter, what happens? - Compare and contrast imperative versus declarative styles of programming.