Seeking assistance in creating a grid of divs, I am working on finding the square root of the user's input to determine the height and width required to form a square. The code below is what I currently have:
$('#size').click(function(){
$('.container').empty();
var big = prompt('Enter the desired number of cubes');
var final = $(big).sqrt();
drawGrid(final);
If you would like to view my entire project on jsfiddle, please click on the following link: https://jsfiddle.net/ztwsptys/ Any assistance or feedback is greatly appreciated.