Skip to content
Advertisement

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

What are major differences between Controlled and Uncontrolled Components in react-hooks-form?

I am using react hooks form. I read from documentation about controlled and uncontrolled. Controlled and this is UnControlled form Can somebody please tell what difference does it makes? And what do i gain by making controlled components instead of uncontrolled? Answer React Hook Form embraces uncontrolled form and input, which means you can still build controlled form and input

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 image:

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 check if an

Advertisement