JavaScript

From WikiMD's medical encyclopedia


JavaScript (often abbreviated as JS) is a high-level, interpreted programming language that conforms to the ECMAScript specification. JavaScript has become one of the core technologies of the World Wide Web, alongside HTML and CSS, as it enables interactive web pages and is thus an essential part of web applications. The vast majority of websites use JavaScript, and all major web browsers have a dedicated JavaScript engine to execute it.

History

JavaScript was created in 1995 by Brendan Eich while he was an engineer at Netscape. Originally developed under the name Mocha, the language was later renamed to LiveScript, and finally to JavaScript, coinciding with the release of Netscape Navigator 2.0. Despite the name, JavaScript is almost entirely unrelated to the Java programming language, and the common naming is generally considered a marketing ploy by Netscape to capitalize on Java's popularity at the time.

Features

JavaScript is characterized by its dynamic typing, prototype-based object-orientation, and first-class functions. It is a multi-paradigm language, supporting imperative, event-driven, and functional programming styles.

Syntax and semantics

JavaScript's syntax is influenced by that of C, though it has fewer low-level facilities. JavaScript supports object-oriented programming with object prototypes, instead of classes (as in C++ or Java). However, with the introduction of ES6 (ECMAScript 2015), JavaScript now supports class-based object-oriented programming as well.

Runtime environment

JavaScript typically runs in a client-side environment (e.g., in a web browser), but it can also be used on the server-side, through environments such as Node.js. This dual capability allows for the development of full-fledged applications that are capable of interacting with a web server and a database.

Usage

JavaScript is used in many aspects of web development. It is used to provide dynamic behavior on websites (e.g., interactive forms, pop-ups, animations), to load content asynchronously via AJAX calls, and to build complex user interfaces with frameworks like React, Angular, and Vue.js.

Security

JavaScript can also be a vector for web security issues, particularly through cross-site scripting (XSS) attacks, where malicious scripts are injected into trusted websites. Modern development practices and frameworks strive to mitigate these risks through various techniques, including content security policies and sandboxing.

See also

References



Stub icon
   This article is a computer programming stub. You can help WikiMD by expanding it!


Navigation: Wellness - Encyclopedia - Health topics - Disease Index‏‎ - Drugs - World Directory - Gray's Anatomy - Keto diet - Recipes

Transform your life with W8MD's budget GLP-1 injections from $125.

W8mdlogo.png
W8MD weight loss doctors team

W8MD offers a medical weight loss program to lose weight in Philadelphia. Our physician-supervised medical weight loss provides:

NYC weight loss doctor appointments

Start your NYC weight loss journey today at our NYC medical weight loss and Philadelphia medical weight loss clinics.

Linkedin_Shiny_Icon Facebook_Shiny_Icon YouTube_icon_(2011-2013) Google plus


Advertise on WikiMD

WikiMD's Wellness Encyclopedia

Let Food Be Thy Medicine
Medicine Thy Food - Hippocrates

Medical Disclaimer: WikiMD is not a substitute for professional medical advice. The information on WikiMD is provided as an information resource only, may be incorrect, outdated or misleading, and is not to be used or relied on for any diagnostic or treatment purposes. Please consult your health care provider before making any healthcare decisions or for guidance about a specific medical condition. WikiMD expressly disclaims responsibility, and shall have no liability, for any damages, loss, injury, or liability whatsoever suffered as a result of your reliance on the information contained in this site. By visiting this site you agree to the foregoing terms and conditions, which may from time to time be changed or supplemented by WikiMD. If you do not agree to the foregoing terms and conditions, you should not enter or use this site. See full disclaimer.
Credits:Most images are courtesy of Wikimedia commons, and templates, categories Wikipedia, licensed under CC BY SA or similar.

Contributors: Prab R. Tumpati, MD