What do you want to save?
Add Code snippet
New code examples
-
Html 2021-09-04 17:50:02
pipes in angular 11
<p>{{name | lowercase}}</p>// Convert to LowerCase <p>{{name | uppercase}}</p> // Convert to UpperCase <p>{{name | titlecase}}</p> // Convert to TitleCase <p>{{birthday | date}}</p> // Convert to Date <p&... Add solution -
Javascript 2021-09-03 21:45:01
given two strings return true if they are anagrams of one another in javascript
function anagrams(a, b) { let i = 0 let sumA = 0 let sumB = 0 a = a.replace(/[\W]/g, "").toLowerCase() b = b.replace(/[\W]/g, "").toLowerCase() if (a.length !== b.length) return false !(function sumCharCode() { if (i ... Add solution -
C# 2021-09-03 11:39:02
windows form textbox password
public void CreateMyPasswordTextBox() { // Create an instance of the TextBox control. TextBox textBox1 = new TextBox(); // Set the maximum length of text in the control to eight. textBox1.MaxLength = 8; // Assign the asterisk to be th... Add solution -
Javascript 2021-09-03 10:58:01
How do you detect whether or not a word is a palindrome in javascript
function palindrome(str) { // Step 1. The first part is the same as earlier var re = /[^A-Za-z0-9]/g; // or var re = /[\W_]/g; str = str.toLowerCase().replace(re, ''); // Step 2. Create the FOR loop var len = str.length; // var len = "A man, a ... Add solution -
Javascript 2021-09-01 04:21:03
anagram js
function isAnagram(stringA, stringB) { // Sanitizing stringA = stringA.toLowerCase().replace(/[\W_]+/g, ""); stringB = stringB.toLowerCase().replace(/[\W_]+/g, ""); // sorting const stringASorted = stringA.split(""... Add solution -
C# 2021-08-31 16:33:02
validate email address
function validateEmail(email) { const re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; return re.test(St... Add solution