Classes-Objects in JavaScript
In this article you will learn the basics Classes and Objects of JavaScript and create the examples of Classes and Objects in JavaScript .
About Object
JavaScript is a object oriented programming language so, its variables is
depending upon the objects. In object oriented programming language , user
create own object to use variables types. An object is a special kinds of data
and it contains the properties and methods. JavaScript has several built in
objects. Such as: Array, String, Date e.t.c. .
Syntax to create an object:-
object_Name.properties_Name
The example to create an object and display the some results:-
| <html> <body> <script language=javascript"> stuobj=new Object() stuobj.name="vinod" stuobj.roll=10 stuobj.sub="Computer" document.write("Student Name :- "+stuobj.name + " Roll no. :- " +stuobj.roll + " Subject :- " +stuobj.sub); </script> </body> </html> |
Tutorials
- Java 26 (JDK 26) Features with examples
- Top 10 Reasons to Learn Java in 2026
- JDK 26 Tutorial
- Java Certification Roadmap 2026: Which Oracle Certs Matter
- Install JDK 26: A Complete Beginner's Guide (2026)
- What Is Java? A Complete, Up-to-Date Guide for 2026
- Java 26 HTTP3 tutorial - HTTP 3 support in JDK 26 - How to use HTTP/3 in Java 26 application?
- JDK 28 Preview: Value Objects, Shenandoah GC & JSON API
- Java Tutorials


