M3- Working with libraries Flashcards

1
Q

What is the main purpose of CSS and JavaScript libraries in web development?

A

CSS and JavaScript libraries provide pre-written code that helps you add functionality and style to your website without having to write everything from scratch.

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

How do you include a CSS library like Bootstrap in an HTML file?

A

You include a CSS library by adding a < link> tag in the < head> section of your HTML file. The href attribute specifies the URL of the CSS file, and the rel attribute indicates that this link is for a stylesheet.

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

How do you include a JavaScript library like Bootstrap’s JavaScript in an HTML file?

A

You include a JavaScript library by adding a < script> tag in the < body> section of your HTML file. The src attribute specifies the URL of the JavaScript file.

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

What is a dependency in web development?

A

A dependency is a library or framework that your application relies on to function correctly. Your application depends on these external pieces of code to work properly.

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

What is a dependency tree, and why can it be complicated?

A

A dependency tree is the network of dependencies where one library might depend on other libraries. This can become complex because managing all these dependencies manually can be time-consuming and error-prone.

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

What is a package manager, and why is it useful?

A

A package manager is a tool that automatically downloads, installs, and manages dependencies (also called packages) for your project. It ensures you’re using the correct versions and handles dependency trees, making it easier to maintain your project.

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

What is N.P.M., and what is its role in front-end development?

A

npm (Node Package Manager) is the most common package manager for front-end development. It helps manage and install JavaScript libraries and dependencies in your project.

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

What is the purpose of a bundling tool in web development?

A

A bundling tool combines multiple JavaScript or CSS files into a single file (or a few files) to reduce the number of resources a browser needs to load. This improves performance by minimizing the number of HTTP requests.

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

What are some examples of bundling tools?

A

Examples of bundling tools include Gulp and Webpack. These tools can combine, optimize, and split your dependencies into bundles to enhance your website’s performance.

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