dev:javascript

Differences

This shows you the differences between two versions of the page.


Previous revision
dev:javascript [2023/05/01 17:24] (current) – [Hello World] Henrik Yllemo
Line 1: Line 1:
 +<button type="primary" size="xs" icon="glyphicon glyphicon-bookmark">[[programming_lagugages| Programming Language]]</button> 
 +====== JavaScript ======
  
 +<data programminglanguage>
 +Full Name: JavaScript ECMAScript 
 +Short Name: JavaScript
 +Description: High-level, interpreted scripting language that conforms to the ECMAScript specification
 +Company: Unkown
 +Web: Yes
 +Mobile: Yes
 +Enterprise: No
 +Embedded : No
 +</data>
 +
 +<accordion>
 +<panel title='What is JavaScript?'>
 +JavaScript is a programming language that is commonly used to create interactive web pages and web applications. It can be used to add dynamic functionality to HTML and CSS-based web pages, and can also be used on the server-side with Node.js.
 +</panel><panel title='What are some features of JavaScript?'>
 +JavaScript is a dynamic, object-oriented language that includes features such as first-class functions, closures, and prototypes. It also includes built-in support for arrays, regular expressions, and JSON (JavaScript Object Notation).
 +</panel><panel title='How is JavaScript used in web development?'>
 +JavaScript is commonly used in web development to add interactivity and dynamic functionality to web pages. It can be used to validate form inputs, create animations, update page content without reloading the page, and interact with APIs and databases.
 +</panel><panel title='What are some popular JavaScript frameworks and libraries?'>
 +Some popular JavaScript frameworks and libraries include React, Angular, Vue.js, jQuery, and Node.js.
 +</panel><panel title='What is the difference between JavaScript and Java?'>
 +JavaScript and Java are two different programming languages that are used for different purposes. Java is a general-purpose programming language that is commonly used for building desktop and server-side applications, while JavaScript is a client-side scripting language that is used to add interactivity and dynamic functionality to web pages.
 +</panel><panel title='What is asynchronous programming in JavaScript?'>
 +Asynchronous programming in JavaScript allows for non-blocking code execution, which means that code can continue to execute while waiting for an operation (such as an API call) to complete. This is typically achieved using callbacks, promises, or async/await functions.
 +</panel><panel title='Can JavaScript be used on the server-side?'>
 +Yes, JavaScript can be used on the server-side with Node.js, which is a runtime environment that allows JavaScript to be executed outside of the browser. This allows for the development of server-side applications using JavaScript.
 +</panel></accordion>
 +
 +
 +{{wp>JavaScript}}
 +
 +<callout type="" title="GitHub Topics" icon="fa fa-github">
 +  * https://github.com/topics/javascript
 +
 +JavaScript (JS) is a lightweight interpreted or JIT-compiled programming language with first-class functions. While it is most well-known as the scripting language for Web pages, many non-browser environments also use it, such as Node.js, Apache CouchDB and Adobe Acrobat. JavaScript is a prototype-based, multi-paradigm, dynamic language, supporting object-oriented, imperative, and declarative (e.g. functional programming) styles.
 +</callout> 
 +<callout type="" title="GitHub Collections" icon="fa fa-github">
 +  * https://github.com/collections/front-end-javascript-frameworks
 +
 +While the number of ways to organize JavaScript is almost infinite, here are some tools that help you build single-page applications.
 +</callout> 
 +
 +
 +<callout type="primary" title="95% of websites use JavaScript" icon="fa fa-quote-right">
 +
 +According to the reports of Internet Live Stats, there are more than 1.7 billion websites across the globe, and JavaScript is used by about 95 percent of them. 
 +\\
 + --- [[https://www.internetlivestats.com/total-number-of-websites/]]
 +\\
 +
 +
 +</callout>
 +
 + 
 +
 +
 +
 +<jumbotron>
 +===== Hello World =====
 +
 +<sxh js>
 +document.write('Hello, World!');
 +
 +alert('Hello, world!');
 +
 +print('Hello, world!');
 +
 +WScript.Echo('Hello, world!');
 +
 +console.log('Hello, world!');
 +</sxh>
 +<WRAP column right><wrap lo>Source: [[https://en.wikibooks.org/wiki/Computer_Programming/Hello_world|Wikibooks]]</wrap></WRAP>
 +</jumbotron>
 + 
 +=== ## ToDo ## ===
 +  * Variables
 +  * Functions
 +  * Objects
 +  * Arrays
 +  * DOM (Document Object Model)
 +  * Events
 +  * Callbacks
 +  * Promises
 +  * Async/Await
 +  * Modules
 +  * Classes
 +  * Inheritance
 +  * Prototypes
 +  * Closure
 +  * ES6/ES2015
 +  * Regular Expressions
 +  * JSON (JavaScript Object Notation)
 +  * AJAX (Asynchronous JavaScript and XML)
 +  * Node.js
 +  * React
 +  * Vue.js
 +  * Angular
 +
 +
 +See also: [[dev:programming_lagugages]]
 +
 +{{tag>programminglanguage dev-web internet web}}