console
class Person{
constructor(value){
this.value = value;
this.sayHello = function(){
console.log("hello")
}
}
get value(){
return this.value;
}
static sum(a,b){
return a+b;
}
sayHi(){
console.log("hi");
}
}
let person = new Person(1);
console.log(person);
console.log(Person.sum(1,2));
person.sayHello();
person.sayHi();
person.sayHi = function(){console.log("not Hi")};
person.sayHi();
person.sayHello = function(){console.log("not Hello")};
person.sayHello();
<!-- <div id="test">123</div>
<style>
@media screen and (max-width: 300px) {
#test {
height:100px;
width:100px;
background-color:lightblue;
}
}
</style> -->