Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

149
Views
codehs how to toggle . createElement to show and hide a button

can someone help me I cannot figure out why the first 2 .createElements don't show but the last three show?

here is my code also here is the link to an example project on codehs https://codehs.com/sandbox/id/javascript-graphics-vvD5CX

var atStoreButton = document.createElement("Button");
   atStoreButton.innerHTML = "At The Store";
document.body.appendChild(atStoreButton);
$("atStoreButton").toggle("slow");
    
var button = document.createElement("button");
    button.innerHTML = "Sign In";
document.body.appendChild(button);
$("button").toggle("slow");

var homeButton = document.createElement("Button");
    homeButton.innerHTML = "Home";
document.body.appendChild(homeButton);
$("homeButton").toggle("slow");

var addAnItem = document.createElement("Button");
    addAnItem.innerHTML = "add Item";
document.body.appendChild(addAnItem);
$("addAnItem").toggle("slow");

var log0ut = document.createElement("Button");
    log0ut.innerHTML = "Log Out";
document.body.appendChild(log0ut);
$("log0ut").toggle("slow");
log0ut.style.display = "block";
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!