Skip to main content
  • Window
    • DOM (Document object Model)
      • html page is made to object and is called DOM
      • window is a global object , we can use window.console.log or console.log
      • document.body displays body as a object
        •   console.log(document)
            console.log(document.body)
            document.body.style.background = "red" // to change colurs
          
    • BOM (Browser Object Model)
      • repersents additional objects provided by the browser (host environment maybe laptop, mobile) for working with everythng except the document
      • functions like alert/prompt/confirm are part of this , they are not part of nodejs
      • function like location.href = “https://sumathi.dev
    • Javascript Core