#Constants# constants
#Scoping#
#Arrow Functions#
#Extended Parameter Handling#
#Constants# constants
#Scoping#
#Arrow Functions#
#Extended Parameter Handling#
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';
What is “promise” and "call back function"? - https://blog.jcoglan.com/2013/04/01/callbacks-promises-and-simplicity/ - http://stackoverflow.com/questions/6801283/what-are-the-differences-between-deferred-promise-and-future-in-javascript
Difference between $http
and $ajax
?
- http://stackoverflow.com/questions/20860207/angularjs-http-vs-jquery-ajax
- http://stackoverflow.com/questions/12131659/from-jquery-ajax-to-angular-http
Relation between $http
and "promises"?
What is jQuery? - A Javascript library that make things like DOM selection/manipulation, AJAX, and animation, easier
What programming language does jQuery use? - Javascript
Is jQuery code executed on the client side, or server side? - Client side
How do you install/use jQuery in a project? What is the minimum setup needed to start using jQuery?
JavaScript Basic Issues Q1 - Q20
<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)
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
Name 3 of the minimum HTML elements needed for an HTML document
html <!DOCTYPE html>, <html>, <body>, <head>