September 2019
Beginner to intermediate
494 pages
13h
English
Despite the similarity in their names, JavaScript and Java barely share any commonalities in their purpose and usage. JavaScript (or JS for short), unlike HTML and CSS, is indeed a programming language, typically used to process and manipulate data, which is then to be displayed by HTML and CSS. What makes it so universal among web projects is its ability to integrate and work with HTML/CSS as well as other web development tools so well.
In our current folder, let's examine the script.js file, which contains the following code:
class Person { constructor(name) { this.name = name; } sayHi() { alert("Hello, I'm " + this.name) }}let p = new Person("Quan");p.sayHi();//document.body.innerHTML = "<p>Hello, ...Read now
Unlock full access