Web Developer Questions et reponses d'entretien
Question 41. Explain the difference between 'localStorage' and 'sessionStorage'.
'localStorage' persists even when the browser is closed and reopened, while 'sessionStorage' data is only available for the duration of the page session.
Question 42. What is the purpose of the 'SQL Injection' attack and how can it be prevented?
SQL Injection is an attack where malicious SQL statements are inserted into user inputs, leading to unauthorized access or data manipulation. Prevention involves using parameterized queries and input validation.
Question 43. Explain the concept of 'Cross-Origin Embedder Policy' (COEP) in web security.
COEP is a security policy that controls whether a document can be embedded in another document across different origins, enhancing security by preventing unauthorized embedding.
Question 44. What is the 'DRY' principle in software development?
DRY (Don't Repeat Yourself) is a software development principle advocating for reducing redundancy by reusing code and avoiding duplication.
Question 45. Explain the purpose of the 'transform' property in CSS.
The 'transform' property is used to apply 2D or 3D transformations to elements, such as scaling, rotating, and translating.
Example:
div {
transform: rotate(45deg);
}
Les plus utiles selon les utilisateurs :