LESSON2-JAVASCRIPT Flashcards

1
Q

offer simplicity and flexibility, making them suitable for a wide range of applications, from basic contact forms to complex data entry interfaces.

A

HTML Forms

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

HTML provides a robust set of form elements, including input fields, buttons, checkboxes, radio buttons, dropdown menus, and text areas

A

HTML Forms

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

is essential for ensuring that user input meets specified criteria before submitting data to a server.

A

Form Validation Using JavaScript

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

display error messages or highlight invalid fields to guide users

A

Clear Feedback

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

define validation rules for each form field, such as required fields or email formats

A

Custom Rules

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

use JavaScript event handlers to trigger validation as users interact with fields

A

Event Handling

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Test validation across browsers to ensure consistent behavior.

A

Cross-Browser Compatibility

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

utilize regex for precise validation, like checking emails or phone formats

A

Regular Expressions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Implement ___________- as a fallback for security.

A

Server-Side Validation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Optimize validation logic for efficient processing, especially in complex forms.

A

Performance Optimization

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Ensure error messages are accessible to all users.

A

Accessibility

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

improves usability, data integrity, and user satisfaction in web applications.

A

JavaScript Form Validation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
  • involves executing code within the user’s web browser. This code is downloaded along with the web page and runs on the client’s device.
A

Client-Side Scripting

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
  • The primary languages used for client-side scripting are ?, ? ,?.
A

HTML
CSS
JavaScript

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Advantages of Client-Side Scripting

A

Improved User Experience
Reduced Server Load
Instant Feedback

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Client-side scripting enables interactive and dynamic web pages, enhancing ________ through features like form validation, animations, and real-time updates.

A

Improved User Experience

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

By offloading processing tasks to the client’s device, client-side scripting helps distribute the workload, reducing the burden on the server and improving overall system performance.

A

Reduced Server Load

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

With client-side scripting, users receive immediate feedback without waiting for server responses, leading to faster interactions and smoother browsing experiences.

A

Instant Feedback

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Common Use Cases of Client-side Scripting

A
  1. Form Validation
  2. Dynamic Content Generation
  3. User interface and user experience enhancements (e.g., dropdown menus, sliders)
  4. Client-side storage (e.g., cookies, local storage)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q
  • involves executing code on the web server before delivering the resulting web page to the client’s browser.
A

Server-Side Scripting

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q
  • Common server-side scripting languages include ?, ?, ?, ?.
A

PHP
Python
Ruby
Node.js.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Advantages of Server-Side Scripting

A

Enhanced Security
Access to Server Resources
Platform Independence

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Server-side scripting allows sensitive operations and data processing to be performed on the server, reducing the risk of exposing critical code or data to users.

A

Enhanced Security

24
Q

Server-side scripting enables access to server resources like databases, file systems, and external APIs, facilitating complex operations and data manipulation.

A

Access to Server Resources

25
Server-side scripts run independently of the client's device and browser, ensuring consistent behavior and compatibility across different platforms.
Platform Independence
26
Common Use Cases of Server-side Scripting
1. User authentication and authorization 2. Database operations (e.g., CRUD operations) 3. Content Management Systems (e.g., WordPress)
27
In HTML, JavaScript code is inserted between ________ tags either within the head and/or body sections of an HTML document.