Skip to content

Vue.js Variables

I am very new to Vue.js (and html in general), I am attempting to use Vue.js to automate Bulma tab switching without needing many HTML docs. This is an example of one of the lines to swap which tab is active. I am curious where I can initialize the tabsel variable and how does scoping work? I initially had a

How to call multi variable array in JS function?

I’m using this function to select one item in drop down menu: Now I want to select multi item before “await this.select();” this step. I tried to edit function like this: but when I call this function to select multi item it has error Expected 0-1 arguments, but got 3 How do I fix this? Answer You can m…

I cannot find a way to print a JSON Value

I have this JSON object that prints the information about currencies. I am trying to get the data for a specfic currency that is USD. When I type JSON.data.bpi.USD it says UNDEFINED. I need help with this. Answer You can access to your object properties with Property accessor dot notation:

replace variable name with the respective variable value

I want to make a website in which variable name written in ‘{{‘ and ‘}}’ should get the value of variable. For example the output should be hi its is computer here is my code. output of the above code is: hey it is computer. how are you. I am {{ data[1] }} years old. once visit this js…