How to install laravel dusk to do browser testing for your application?

Laravel Dusk provides an easy-to-use browser automation using chromedriver installation. Install composer dependency for your application Now execute below artisan command Set the APP_URL env variable in the .env file. This value should match the URL you use to access your application in a browser. Create a test Run test This will run the test

How to install laravel dusk to do browser testing for your application? Read More »

child theme

Basic array operations in Javascript

How to add elements at the start of an array in javascript? let list1 = [‘b’, ‘c’]; //using spread operator console.log([‘a’, …list1]); //Or using unshift method list1.unshift(‘a’); console.log(list1); How to add elements at the end of an array in javascript? let list2 = [‘a’, ‘b’]; //using spread operator console.log([…list2, ‘c’]); //or push method list2.push(‘c’); console.log(list2);

Basic array operations in Javascript Read More »

What is async attribute in script tag in javascript?

What is async attribute in script tag in javascript? <script src=”test.js” async></script> If async attribute is present in script tag then script is executed asynchronously. async attribute is a Boolean attribute. What is the difference between async and defer? If async is present the file gets downloaded asynchronously and then executed as soon as it’s

What is async attribute in script tag in javascript? Read More »