logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • How do you create a new object in JavaScript?


  • Correct Answer
  • var obj = new Object(); or var obj = {}; 


  • Technology problems


    Search Results


    • 1. What is the difference between an alert box and a confirmation box?
    • Discuss
    • 2. How to determine the state of a checkbox using Javascript?
    • Discuss
    • 3. How to get the contents of an input box using Javascript?
    • Discuss
    • 4. Are Java and JavaScript the Same?
    • Discuss
    • 5. What can javascript programs do?
    • Discuss
    • 6. Does javascript have the concept level scope?
    • Discuss
    • 7. Are javascript and jQuery different?
    • Discuss
    • 8. How JavaScript timers work? What is a drawback of JavaScript timers?
    • Discuss
    • 9. What is Javascript namespacing? How and where is it used?
    • Discuss
    • 10. What are the different objects used in JavaScripts?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment