Javasccript Background Theory
Javasccript Background Theory
JavaScript
Q2. Write difference between Client Side Scripting and Server Side
Scripting.
Client-Side Scripting:
Execution: Runs on the user's browser.
Responsibility: Deals with the user interface and client-side interactions.
Processing: The client's device processes the scripts.
Examples: JavaScript is a common client-side scripting language.
Server-Side Scripting:
Execution: Runs on the server.
Responsibility: Manages server operations, database interactions, and
business logic.
Processing: The server processes the scripts and sends the results to the
client.
Examples: PHP, Python (Django), Ruby (Ruby on Rails) are server-side
scripting languages.
Logical Operators:
&& (Logical AND)
|| (Logical OR)
! (Logical NOT)
Assignment Operators:
= (Assignment)
+= (Add and assign)
`-= (Subtract and assign)
*= (Multiply and assign)
/= (Divide and assign)
%= (Modulus and assign)
Unary Operators:
++ (Increment)
-- (Decrement)
typeof (Typeof)
! (Logical NOT)
Server-Side JavaScript:
Uses JavaScript on the server to handle server-side operations.
Common in environments like Node.js, where JavaScript is used to build
scalable and high-performance server applications.
Mobile JavaScript:
Used in frameworks like React Native and Ionic to build mobile
applications.
Enables the development of cross-platform mobile apps using JavaScript.