JAVASCRIPT JavaScript is a prototype-based object-oriented scripting lyric that is dynamic, weakly typed and has first-class places JavaScripts use in applications outside nett pagesfor example in PDF-documents, site-specific browsers and desktop widgetsis too significant. Newer and faster Javascript VMs, particularly Node.js have also increased the popularity of Javascript for server-side weave apps. JavaScript uses syntax influenced by that of C. JavaScript copies many attains and naming conventions from Java, yet the cardinal languages are otherwise unrelated and have real different semantics. History JavaScript was originally developed by Brendan Eich of Netscape under the give ear Mocha, which was later renamed to LiveScript, and finally to JavaScript.
Syntax Simple examples A mere(a) recursive function: ------------------------------------------------- function factorial (n) { ------------------------------------------------- if (n == 0) { ------------------------------------------------- income tax restitution 1; ------------------------------------------------- } ------------------------------------------------- return n * factorial(n - 1); ------------------------------------------------- } Anonymous function (or lambda) syntax: ------------------------------------------------- function extend (i, j) { ------------------------------------------------- var add_pri = function (x, y) { ------------------------------------------------- return x + y; ------------------------------------------ ------- }; -------------------------! ------------------------ ------------------------------------------------- return add_pri(i, j); ------------------------------------------------- } Add JavaScript to HTML In the HTML page itself: < hypertext mark-up language> < encephalon> <script language=javascript> // JavaScript code </script> </head> As a file,...If you want to get a dependable essay, lodge it on our website: OrderCustomPaper.com
If you want to get a full essay, visit our page: write my paper
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.