" ); document . write ( "Book author is : " + book . author + "
" );
Result
Book name is: Perl
Book author is: Mohtashim
Example 2
This example illustrates how to create an object with a User-Defined Function. Here, this keyword is used to refer to an object that has been passed to a function.
User-defined objectsYou should read it
- For ... loop in JavaScript
- Document Object Model (DOM) in JavaScript
- Math object in JavaScript
- String object in JavaScript
- Object Number in JavaScript
- Date object in JavaScript
- Boolean objects in JavaScript
- Learn about Collection of Record in JavaScript
- Multimedia (Multimedia) in JavaScript
- What is JavaScript?
- Class (class) and Object in C ++
- Array (Array) in JavaScript
Maybe you are interested
PowerPoint 2016: Arrange and group objects
Can I take photos of moving objects on a smartphone?
AI erases objects in footage in real time, making filming more 'leisurely'
Detecting an unusual object lurking in our Galaxy, possibly a black hole
PowerPoint 2016: Animate text and objects
Instructions for deleting objects in photos on iOS 18