Text Practice Mode
Typing test for programmers
created Oct 20th, 12:12 by HViet
4
161 words
            30 completed
        
	
	4.25
	
	Rating: 4.25	
	
		
		
			
				
					
				
					
					
						
                        					
				
			
			
				
			
			
	
		
		
		
		
		
	
	
		
		
		
		
		
	
            
            
            
            
			 saving score / loading statistics ...
 saving score / loading statistics ...
			
				
	
    00:00
				const regex = /^(https?:\/\/)?[\w.-]+\.[a-z]{2,}\/?$/i; 
console.log(regex.test("https://example.com") ? "Valid" : "Invalid");
 
function quickSort(arr) {
if (arr.length <= 1) return arr;
const pivot = arr[Math.floor(arr.length / 2)];
const left = arr.filter(x => x < pivot);
const right = arr.filter(x => x > pivot);
return [...quickSort(left), pivot, ...quickSort(right)];
}
 
class Point {
constructor(x, y) {
this.x = x ?? 0;
this.y = y ?? 0;
}
move(dx = 0, dy = 0) {
this.x += dx;
this.y += dy;
return '(${this.x}, ${this.y})';
}
}
 
for (let i = 0; i < 5; i++) {
console.log('fib(${i}) = ${fibonacci(i)}');
}
			
			
	        console.log(regex.test("https://example.com") ? "Valid" : "Invalid");
function quickSort(arr) {
if (arr.length <= 1) return arr;
const pivot = arr[Math.floor(arr.length / 2)];
const left = arr.filter(x => x < pivot);
const right = arr.filter(x => x > pivot);
return [...quickSort(left), pivot, ...quickSort(right)];
}
class Point {
constructor(x, y) {
this.x = x ?? 0;
this.y = y ?? 0;
}
move(dx = 0, dy = 0) {
this.x += dx;
this.y += dy;
return '(${this.x}, ${this.y})';
}
}
for (let i = 0; i < 5; i++) {
console.log('fib(${i}) = ${fibonacci(i)}');
}
 saving score / loading statistics ...
 saving score / loading statistics ...