Category : parameters

I have one JavaScript function which takes values of the arguments passed to that function as arguments Object ( See below example). Here I see issue when I call same function simultaneously then old value is getting overwritten with new value. function my( ) { id = arguments[0]; function execute(){ callservice(id); } if(id == 1){ ..

Read more

First question here… so hi guys! So, I was doing a function where I should get the higher and lower numbers from an array and I came with this code: const arraySort = (numbers) =>{ if (!numbers) return console.log(‘No numbers’); if (Array.isArray(numbers) === false) return console.log(‘No array!’); if (numbers.includes(undefined)) return console.log(‘undefined in the array’); let ..

Read more

I have this autocomplete feature in vue where I am populating an autocomplete dropdown with values from a json-server. Below is the relevant code blocks: <v-autocomplete dense filled label="Subject: " v-model="subject" :items="subject" item-text=’example’ item-value=’example’> <option v-for="example in subject" v-bind:key="example.id" v-bind:title="example.title">{{ example }}</option> </v-autocomplete> <script> export default { name: ‘Inbox’, data() { return { subject: [], ..

Read more