Web Developer вопросы и ответы для интервью
Вопрос 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.
Вопрос 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.
Вопрос 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.
Вопрос 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.
Вопрос 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);
}
Самое полезное по оценкам пользователей: