Skip to main content

Posts

Showing posts with the label Programming Basics

Mastering the Basics of JavaScript: A Quick and Comprehensive Guide

JAVASCRIPT Javascript is a client-side programming language. It basically uses for changing the behavior of simple HTML at occurring an event by clicking, cursor hovering, and key pressing. Javascript writes in '.html' file, and '.php' file internally and externally with the extension of '.js'. In HTML, You can write javascript code anywhere but head tags (<head> javascript code </head>) are recommended. Note: * JQuery is a Javascript library that has pre-built functions of javascript. AJAX is a Javascript Framework that allowed changes in the data and behavior of a page without reloading. SYNTAX: '<script type="text/javascript">' (Open tag)  and   '</script>' (Close tag) DATATYPE: number (2, 2.5, 2.56e45) string ('java', "script", '5') boolean (true, false) object (all types of arrays) OPERATORS: Arithmetic Operators (+, -, *, /, %, **) Increment/Decrem...