Javascript (and CSS) for Web Apps seminar

I watched one of the seminar videos suggested by CS50x team. As David Malan and teacher assistants did a very good job in explaining the fundamentals of web programming, I already understand most part of the seminar such as javascript, css, bootstrap, setting permissions, and jQuery.

Javascript is a programming language used on the web to give dynamics to the websites. Programmers can make websites interact with users in ways such as changing a color of a part of the website, add some texts, and many more.

JQuery is a library of javascript that is very popular. A library consists of premade codes, in this case JQuery consists of premade code of javascript. Premade code lessens the programmers burden because programmers can just include the library in their html file without having to write the code himself/herself.


To include jQuery library, programmers can include

in their html file. After they have included the library, programmers can use any functions documented in documentation. There are many other libraries for javascript besides jQuery, one such library is Moment.js, which is “a javascript date library for parsing, validating, manipulating, and formatting dates”. This explains all the -js suffix of many programming language I see, now I know they are libraries. I had used one such library without notice, the impactJS library, that helps in programming games.

Similarly, Bootstrap is a library for CSS. The way to include it is to add the line

in your html file. Bootstrap gives a lot of functionality to styling your websites. You can refer to the documentation here.

Lastly, the issue of license. Programmers code codes and distribute them under certain license, stating what are the terms of use of said codes. The different types of licenses are listed here. The most famous one is the MIT license as follows:

The MIT License (MIT)

Copyright (c) [year] [fullname]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Leave a Reply