Skip to content

Instantly share code, notes, and snippets.

@ethanjiezhou
ethanjiezhou / ECMAScript 6 — New Features: Overview & Comparison.md
Last active July 27, 2016 15:32
ECMAScript 6 — New Features: Overview & Comparison

#Constants# constants

#Scoping#

#Arrow Functions#

#Extended Parameter Handling#

@ethanjiezhou
ethanjiezhou / JacaScript Exercises, Practice, Solution.md
Last active August 18, 2016 04:25
JacaScript Exercises, Practice, Solution

JavaScript Functions

  1. Write a JavaScript program to display the current day and time in the following format.
	var today = new Date();
	var day = today.getDay();
	var dayList = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
	console.log('Today is: ' + dayList[day]);
	var hour = today.getHours();
	var prepand = (hour >= 12) ? 'AM' : 'PM';
@ethanjiezhou
ethanjiezhou / Q&A GUIDE - Scenario.md
Created June 14, 2016 14:24
Q&A GUIDE - Scenario
  1. Create an unordered list with no class and no id. When clicked, send an alert window to show which list has been clicked. Use Javascript or jQuery - Answer: ```html
@ethanjiezhou
ethanjiezhou / Q&A GUIDE - jQuery.md
Last active May 12, 2016 13:50
Q&A GUIDE - jQuery
  1. What is jQuery? - A Javascript library that make things like DOM selection/manipulation, AJAX, and animation, easier

  2. What programming language does jQuery use? - Javascript

  3. Is jQuery code executed on the client side, or server side? - Client side

  4. How do you install/use jQuery in a project? What is the minimum setup needed to start using jQuery?

@ethanjiezhou
ethanjiezhou / Q&A GUIDE - CSS.md
Last active May 4, 2016 19:28
Q&A GUIDE - CSS
  1. Difference between display “block”, “inline”, and “inline-block”? - Imagine a <span> element inside a <div>. If you give the <span> element a height of 100px and a red border for example, it will look like this with - Inline
![](http://i.stack.imgur.com/Emf0B.png)

- **Inline-block**

![](http://i.stack.imgur.com/1vbks.png)
@ethanjiezhou
ethanjiezhou / Q&A GUIDE - HTML.md
Last active July 25, 2016 01:40
Q&A GUIDE - HTML
  1. Difference between HTML, XML, and XHTML? * HTML is a markup language used for displaying text and documents across different platforms and machines. It was originally intended for a very specific audience, and has expanded to include hypertext, multimedia, as well as the style of the documents displayed * XML is an extensible markup language that was developed to retain the flexibility and power of HTML while reducing most of the complexity. * XHTML combines the flexibility of HTML with the extensibility of XML. For XHTML, the DOCTYPE, The xmlns attribute in <html>, <html>, <head>, <title>, and <body> is mandatory

  2. Name 3 of the minimum HTML elements needed for an HTML document html <!DOCTYPE html>, <html>, <body>, <head>