top of page

Create Own Art works Dynamically - Get Javascript Assignment Help

This is an application where user can create a box of width, height and color according to their need. User enters width, height and color of box and after that according to user input box will display on the screen.User can create multiple boxes on the screen.

There is also remove button to delete all the boxes.


<button onclick=createBox()> Click to create box</button>
     <button onclick=remove()>To remove All boxes</button>
    <div id="box">

    <script src="script.js"></script>

Javascript Code

var a = 0;
function createBox() {
    var width = prompt("Enter width of box")
    var height = prompt("Enter height of box")
    var color = prompt("Enter color of box")
    var display = document.getElementById('box'); = "flex";

    var newNode = document.createElement('div');
    newNode.className = `box${a + 1}`; = `${width}px` = `${height}px` = `${color}`; = "block"


function remove() {

For assignment help of this sample assignment mail us on

Also, If you are looking for any kind of coding help in programming languages,web developing Contact us for instant solution


bottom of page