Found 8895 Articles for Front End Technology

How to Test JavaScript Code Automatically?

Kalyan Mishra
Updated on 14-Apr-2023 16:27:52

277 Views

Testing JavaScript code automatically can help us to ensure that our code works as intended and catches any bugs or errors it contains. In this article, you will learn about how we can test JavaScript code automatically. Several types of tests are there which can be performed on JavaScript. Unit Tests In this testing we test all the function unit; modules or components which JavaScript program contain. The goal of unit testing is to verify that the smallest possible pieces of code work as expected. In JavaScript, unit testing can be performed using frameworks such as Jest or Mocha. Integration ... Read More

How to remove fake JavaScript pop-up messages and warnings?

Kalyan Mishra
Updated on 14-Apr-2023 16:26:54

258 Views

Fake JavaScript pop-up messages and warnings are typically used for malicious purposes, such as tricking users into downloading malware or providing sensitive information. These fake popups and messages often appear to be legitimate alerts from trusted sources, such as a user's operating system, web browser, or security software, in order to deceive the user into taking a particular action. Clicking popup can forward you to the malicious website example can be − There are several types of fake pop-ups that you may encounter while browsing the internet. Here are some of the most common types − Some Type of Fake ... Read More

Importance of Node.js in JavaScript

Kalyan Mishra
Updated on 14-Apr-2023 16:24:30

218 Views

What is Node.js? Node.js is a JavaScript runtime environment which is used to execute the JavaScript code outside the browser. It can be used on different operating system like windows, Mac OS, Linux. Node.js is used to build server-side web applications which can respond fast and handle multiple connections parallelly. Why Node.js? JavaScript was created for the purpose of using it in web browsers. Node.js has enabled developers to use JavaScript for full-stack development. It allows developers to write both the client-side and server-side code in the same language and create web applications, command-line interface tools and other software. Using ... Read More

What is the best way to learn Vanilla JavaScript?

Kalyan Mishra
Updated on 14-Apr-2023 16:22:53

1K+ Views

Learning Vanilla JavaScript can be a great way to gain a solid foundation in the language. Vanilla JavaScript is the pure form of JavaScript without the use of any frameworks or libraries. In this article, we will discuss the best way to learn Vanilla JavaScript. But before it, let’s discuss the difference between Vanilla JavaScript and JavaScript. What is difference between Vanilla JavaScript and JavaScript? Generally, there is no difference between them, but there are some differences based on the following parameters. Vanilla JavaScript is a core of the JavaScript language. Which refers to ES5/6/7 and so on. Whereas ... Read More

How do I evaluate blockchain implemented in JavaScript?

Kalyan Mishra
Updated on 14-Jul-2023 17:04:13

44 Views

Blockchain is a chain of blocks that contains information. In year 2009 this technology later adapted by Satoshi Nakamoto to create digital crypto-currency bitcoin. This is completely open to anyone who want to develop or analyse. This technology has a feature which make it very complex to make changes once some data has been recorded in the block of chain. Here are some terms which is used in the blockchain program to evaluate. Block − The block in the block chain contains information like data, Hash value and previous block hash value. Data − This data is completely ... Read More

How to conditionally disable the input taking in VueJS?

Mayank Agarwal
Updated on 13-Apr-2023 16:42:54

4K+ Views

For removing the disabled property, we can use the disabled tag available in VueJS. The disabled tag basically checks for the boolean value and decides if the input tag needs to be displayed or not. We set the value in app.js and dynamically change its value based on the toggle feature. To apply the :disabled, we will first create a div element with id ‘app’. Once the div element is created, we can apply the disabled property to the element by initializing the data content. Syntax Following is the syntax to disable the input taking in Vue.js − @click ... Read More

How to check if a string is palindrome or not without filters in VueJs?

Mayank Agarwal
Updated on 13-Apr-2023 16:42:02

108 Views

Filters basically provides the functionality to check inputs and then apply different type of formatting or transformations to the same. The filter property of a component is an object that accepts a value and return some other confirgured value as a response. In this article, we will not use filters and therefore directly apply the logic to check if a string is a palindrome or not. For a string to be palindrome the string should be equal to its reverse string. Therefore, we have to first reverse the string and then check the equality of that string with the original ... Read More

How to categorize a year as a Leap or Non-Leap using Vue?

Mayank Agarwal
Updated on 13-Apr-2023 16:40:34

97 Views

Vue can be defined as a progressive framework for building the user interfaces. It has multiple directives that can be used as per the user needs. The basic core library is mainly focused on building the view layer only and is also easy to pick up other libraries or integrate with them. In this article, we will use the Vue filters to check whether a string is a Leap year or not. A leap year has 366 days, whereas a non-Leap year has only 365 days. We can use logic to check whether a year is a Leap or not. ... Read More

How to capitalize a String using VueJs filters?

Mayank Agarwal
Updated on 13-Apr-2023 16:37:38

2K+ Views

Vue can be defined as a progressive framework for building the user interfaces. It has multiple directives that can be used as per the user needs. The basic core library is mainly focused on building the view layer only and it is also easy to pick up other libraries or integrate with them. In the below article, we will see how to capitalize a particular string. Capitalizing is basically a process where only the first character of a string is in capital letters and remaining all the characters are in lower case. We can capitalize a string by getting the ... Read More

How to call a VueJS component method from outside the component ?

Mayank Agarwal
Updated on 13-Apr-2023 16:36:08

6K+ Views

Generally, we cannot call a Vue component method from outside the component. But we have a way to call the component from outside. We can use the Vue’s ref Directive. This metthod allows a component to be referenced from the parent for direct access. To apply the ref Directive, we will first create a div element with id ‘app’. Once the div element is created, we can apply the ref to the element by initializing the its data. Syntax Following is the syntax to call a component method from outside the component in Vue.js − Here, the ... Read More

Advertisements