• Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • mChat
    • mChat page
    • Archive
  • Login
  • Register

Hosting Chatter

Hosting and Web Development

  • Board index Main Zone Coding
  • Search

JavaScript: Classes

Post Reply
  • Print view
Advanced search
1 post • Page 1 of 1
User avatar
Jason
Site Admin
Posts: 809
Joined: Tue Jul 01, 2025 10:13 am
  • Quote

Sat Aug 09, 2025 4:06 am

Code: Select all

// saved on external file class-javascript-how-to.js

class TV { 

constructor(make, size) {
 ;) 
this.make = make;

this.size = size;

}

}
 
let TV_of_Amber = TV(Magnavox, 24);

document.write(TV_of_Amber.make);

document.write(TV_of_Amber.size);

 

POSTREACT(ions) SUMMARY

Top
Post Reply
  • Print view
1 post • Page 1 of 1

Return to “Coding”

Jump to
  • Welcome
  • ↳   Home/Blog
  • ↳   Announcement
  • ↳   Feedback
  • ↳   Introduction
  • Main Zone
  • ↳   All About Hosting
  • ↳   Web Development
  • ↳   Marketing
  • ↳   Coding
  • ↳   Applied Coding
  • ↳   Database Coding
  • ↳   Web Design
  • ↳   Tech Hardware
  • Buy/Sell
  • ↳   Hosting Offers
  • ↳   3rd Party Services
  • ↳   Post Exchanges
  • ↳   Posting Service
  • Chill Zone
  • ↳   Any-Topic
  • ↳   Site Showcase
  • ↳   Offline Sites
  • Social Media
  • ↳   Hosting Chatter
Advanced search

Login  •  Register



  • Board index
  • All times are UTC
  • Delete cookies
  • Privacy
  • Terms
  • Contact us
 

 

Powered by phpBB™ • Design by PlanetStyles Powered by MathJax