Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6550663
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:14:34+00:00 2026-05-25T12:14:34+00:00

Using javascript console of Google Chrome Developer tool, for example, it will be possible

  • 0

Using javascript console of Google Chrome Developer tool, for example, it will be possible to inspect global object like Math.

You can simple write Math in your console and then return.
You will be able to access all properties like E, PI and methods like abs, ceil, etc.

Also String is a global object like Math, but if you try the same operation, the javascript condole output will be different and you will be not able to see Properties and Methods.

In order to see Properties and Methods of String you need to make something like this.

var c = new String("asd")

And then inspect the c objet.

So my question is, can you make an example of very simple objects implemented as String and then as Math?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T12:14:35+00:00Added an answer on May 25, 2026 at 12:14 pm

    In regular OO Math would be seen as a Static class, there is only one instance of it. String would be a normal class, where you create more then one instance.

    As for javascript; you can make an object with values as functions:

    var Calc = {
     Addition : function(a,b)
     {
       return a+b;
     }
    }
    

    You can call Calc.Addition(1,2) and get 3 back.

    In the other sample, where you have to instantiate the object first you could have something like this:

    var Person = function(name)
    {
     this.Name = name;
    
     this.Walk = function()
     {
       console.log(this.Name + "  is walking");
     }
    }
    
    var p = new Person("AntonJS");
    

    In your console log you’d see p has a property called Name, and a function called Walk.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to debug my javascript application using Google Chrome 3 's developer
Is it possible to set breakpoints using the google chrome inspector on javascript code
I want to log to the console when I'm using un-minimized JavaScript files. Comments
Using Javascript, I would like change the background color of the numbers in an
using javascript I have a function function test(variable) { if(variable != 'undefined') { console.log('variable
I'm using the Google Maps Javascript API V3 to reverse-geocode a lot of locations
I'm loading reCAPTCHA via JavaScript http://www.google.com/recaptcha/api/js/recaptcha_ajax.js and am using jquery-1.5.2.min.js to communicate with a
I'm using a javascript library called flot (http://code.google.com/p/flot/) to render graphs and charts and
I am using JavaScript and jQuery and would like to call a function when
Using JavaScript I open the pop window and parent window is inactive at this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.