javascript

slice method

Javascript slice() method:

Slice() method extracts a part of string and returns a new string without modifying the original string. It requires the index as start and end parameters for returning part of the string. Here negative index are allowed. Syntax: slice(indexStart) slice(indexStart, indexEnd) Here the parameter indexEnd is optional. indexStart – index of first character to include …

Javascript slice() method: Read More »

How to add CSS to HTML?

Basic Insight into Inline, Internal and External CSS Before getting into the topic of how to add CSS to HTML, first we will try to understand what CSS means, how to write it, difference between HTML and CSS, advantages of CSS. What is CSS? CSS stands for Cascading Style Sheet. In simple terms, CSS is …

How to add CSS to HTML? Read More »

Think beyond console.log()

While working with javascript we often use this popular method console.log(). During debugging when we need some insight about the happenings we use console.log(). There are a lot more methods to debug your code alternative to console.log(). These alternative console.log() methods are useful in data visualization, debugging etc., Alternative to console.log(): 1.console.table() This console.table() method …

Think beyond console.log() Read More »