Skip to main content

Java Script variables and functions



JavaScript, often abbreviated as JS, is a high-level, interpreted programming language. It is a language which is also characterized as dynamic, weakly typed, prototype-based and multi-paradigm.



Variables
No need to give data types to the variables.



result:



Function

a set of statements that performs a task or calculates a value. To use a function, you must define it somewhere in the scope from which you wish to call it. 



result






Comments

Popular posts from this blog

Create Google Drive App to View and Upload Files Using OAuth 2.0 and Flask

For authentication and authorization processes, we can use OAuth 2.0 framework. It is an industry standard authorization protocol. This is a direct authentication pattern. So users can login using their other public profiles. No need to register and enter password. Because of that, this is often called the password anti-pattern. How Aouth works? When web application redirects a browser to a Google URLauthorization sequence begins; the URL includes query parameters that indicate the type of access being requested. Google manages the user authentication and session selection. The result is an authorization code, which the application can exchange for an access token and a refresh token [6]. Authentication process - source -  https://developers.google.com/identity/protocols/OAuth2 The application should store the refresh token for future use and use the access token to access a Google API. Once the access token expires, the application uses the refresh token ...

Node js and Java Script

open-source JavaScript run-time environment executes JavaScript code server-side       JavaScript is a programming language.        Node . js  is an environment allowing  JavaScript  code to run on the server side and not in a browser. It is based on Chrome's V8 Engine, which runs on Google Chrome. Java script engines runs the JavaScript from the web pages. Firefox                -      Spidermonkey Safari                  -      JavaScriptCore Chrome              -           V8   Node js based on v8 engine.  Node Js  is Easy to learn has Freedom in building apps helps to write both backend and front end of web app using js