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

192
Views
Passing class arguments to a template literal in the class method

Hi I really new with this and have run into a hiccup. i am passing information to a class, and need to use the information i pass to create a new DOM Element using a template literal.

essentially...

 const animeBlock = document.querySelector(".anime_block")

const fruity = ` <div classid > 
     <h1> ${name}</h1>
     <h1> ${aut}</h1>
      etc. 

class anime{ 
   constructor(name, aut, rel, stat, plot, main){
      this.name = name;
      etc.
   }

 bringBack(){
 animeBlock.insertAdjacentHTML("afterbegin", fruity)
 }

how do i use the information from the instance into the template literal (fruity).

Thank you in advance,

any information is greatly appreciated.

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!