Category: Javascript
JavaScript Code Finally Bujha function Person(first, last, age, gender,interests){ this.name={ first:first, last=last }; this.age=age; this.gender=gender; this.interests=interests;…
Code: <!DOCTYPE html> <html> <head> <meta charset=”utf-8″> <title>Object-oriented JavaScript example</title> </head> <body> <script> const person={ name:[‘Syed Ahmed’,’Zaki’],…
What is “this”? You may have noticed something slightly strange in our methods. Look at this one…
https://www.freecodecamp.org/news/an-introduction-to-object-oriented-programming-in-javascript-8900124e316a/ https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Basics
<!DOCTYPE html> <html> <body> <h2>JavaScript Getters and Setters</h2> <p>Getters and setters allow you to get and set…
//Arrow Function Example hello=val=>”Hello “+val; console.log(hello(“Universe!”));
Recent Comments