Syntax

JavaScript is a scripting language.
It is a dynamic language which means you can modify data types and objects at run-time.
It has both object orientated and functional programming features.
It has java syntax.


Javascript is the programming language of the web.
It is well-suited to object-oriented and functional programming styles
JavaScript uses prototypes to define object properties, including methods and inheritance.


You want as much separation between the Javascript code and the HTML
JavaScript is related to ECMAScript, however. Ecma International, working with other organizations, created this standardized scripting language in the ECMA-262 specification and ISO/IEC 16262.
The language is widely used for client-side scripting on the web, and you commonly see several well-known variations of ECMAScript such as JavaScript, JScript, and ActionScript. The current release is ECMAScript Edition 5.1 and most common browsers support ECMAScript Edition 5.0 or newer.


JavaScript supports object-oriented programming with object prototypes, instead of classes


CSS is a language of style rules that we use to apply styling to our HTML content, for example setting background colors and fonts, and laying out our content in multiple columns.



jsbin.com
developer.mozilla.org/en-US/docs/Web/javascript


Colours

rgba(255,255,255) 

security prompt = allow active content to run on my computer
javascript runtime depends on the browser
has garbage collection
functions replace classes, constructors, methods
variables can be redefined at runtime (dynamic)
no compile check done only runtime checks (because it is loosely typed)
prototype instead of inheritance
any number starting with zero is an octal number
non zero numbers are true


console.log
confirm("A message box appears");
var return = prompt("What day is it today?");



Errors
syntax or run-time


DOM

Document Object Model


innerHTML
childNodes
firstChild
lastChild



© 2018 Better Solutions Limited. All Rights Reserved. © 2018 Better Solutions Limited TopNext