If string contains a substring in JavaScript use the following – <script type=”text/javascript”> const string = “foo”; const substring = “oo”; console.log(string.includes(substring)); // true </script>
How do I format a date in JavaScript?
May 23, 2022
To format a date use the following code – <script type=”text/javascript”> var options = { weekday: ‘long’, year: ‘numeric’, month: ‘long’, day: ‘numeric’ }; var… Read More →
Here’s the SQL query for deleting all posts in Trash in WordPress: sql DELETE FROM wp_posts WHERE post_status = ‘trash’; This query will delete all… Read More →
JavaScript For Loop
May 13, 2022
<h2>JavaScript For Loop</h2> <p id=”demo”></p> <script> const cars = [“BMW”, “Volvo”, “Saab”, “Ford”, “Fiat”, “Audi”]; let text = “”; for (let i = 0; i… Read More →
How To Create a Blurry Background Image with CSS
May 13, 2022
Create a Blurry Background Image with CSS /* The image used */ background-image: url(“photographer.jpg”); /* Add the blur effect */ filter: blur(8px); -webkit-filter: blur(8px); /* Full height */… Read More →
Responsive Topnav Example w3schools
May 13, 2022
Responsive Top Navigation (Bootstrap Styled) MyBrand Home News Contact About Bootstrap Responsive Nav Example Resize the browser window to see the navigation collapse into… Read More →
