<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>class Area{
constructor(list){
this.element = $("<div>");
this.element.addClass('button-area');
this.element.css({color: 'red'});
list.map((txt) => {
this.element.append(this.text(txt));
});
return this.element;
}
text(txt){
const p = $('<p>');
p.text(txt);
p.attr('class', 'p_test');
return p;
}
}Initializing...
| Test Case | Ops/sec | |
|---|---|---|
| POO | | ready |
| Proc | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.