Skip to content

Tag: javascript

Need help for a Vue – BMI Calculator

I am learning Webdev with Vue. And in my project, I built a component to calculate the BMI of a person. I have created a form with bootstrap-vue to get the values I need. And now I need help for the JavaScript part. I just don’t know how to correct it. Formula I have used: Answer A few issues: The

how to place sliced images into a javascript table

I have to place images into a table, only using java script. I have this so far., and i am unsure of how to get the images to actually display as actual images for the javascript table. My teacher told us to use document.write, any help will be appreciated. Answer You need to use something like below for imag…

compare an array and object to see if item exists

I have the following: An array then I have an array of objects How can I check if myArray value is found in the myObjectArray? I thought about looping through myArray and then in each iteration looping through myObjectArray to see if it is present. However this seems so 2001. Any ideas? Answer if you want to …