What is difference between server side scripting and client side scripting?
Answers
Answer:
Explanation:All websites usually run on three components namely the server, the client and the database. To view a website, an individual has to use a browser. This browser can be termed as a client. The client can use different technologies like mobile phones, laptops, computers, tablets, etc. to view the websites. Here the client side scripting is being used and processed. The client-side scripting is performed by a browser.
The server can, however, be at any remote place around the globe. The server can run back-end architecture of a website, process requests, send pages to the browser, and so on. Server-side scripting is usually done by a web server. The main task of the script here is to extract the correct data from the database and use it for the web project.
Tʜᴇ ᴍᴀɪɴ ᴅɪғғᴇʀᴇɴᴄᴇ ʙᴇᴛᴡᴇᴇɴ sᴇʀᴠᴇʀ-sɪᴅᴇ sᴄʀɪᴘᴛɪɴɢ ᴀɴᴅ ᴄʟɪᴇɴᴛ-sɪᴅᴇ sᴄʀɪᴘᴛɪɴɢ ɪs ᴛʜᴀᴛ ᴛʜᴇ sᴇʀᴠᴇʀ sɪᴅᴇ sᴄʀɪᴘᴛɪɴɢ ɪɴᴠᴏʟᴠᴇs sᴇʀᴠᴇʀ ғᴏʀ ɪᴛs ᴘʀᴏᴄᴇssɪɴɢ. ... Tʜᴇ ᴄʟɪᴇɴᴛ-sɪᴅᴇ sᴄʀɪᴘᴛ ᴇxᴇᴄᴜᴛᴇs ᴛʜᴇ ᴄᴏᴅᴇ ᴛᴏ ᴛʜᴇ ᴄʟɪᴇɴᴛ sɪᴅᴇ ᴡʜɪᴄʜ ɪs ᴠɪsɪʙʟᴇ ᴛᴏ ᴛʜᴇ ᴜsᴇʀs ᴡʜɪʟᴇ ᴀ sᴇʀᴠᴇʀ-sɪᴅᴇ sᴄʀɪᴘᴛ ɪs ᴇxᴇᴄᴜᴛᴇᴅ ɪɴ ᴛʜᴇ sᴇʀᴠᴇʀ ᴇɴᴅ ᴡʜɪᴄʜ ᴜsᴇʀs ᴄᴀɴɴᴏᴛ sᴇᴇ.