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);
}
ユーザー評価で最も役立つ内容: