This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="https://formsubmit.co/your@email.com" method="POST"> | |
<input type="text" name="name" required> | |
<input type="email" name="email" required> | |
<input type="tel" name="phone" required> | |
<button type="submit">Send</button> | |
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Selector } from 'testcafe'; | |
const title = Selector('h4'); | |
fixture('Test') | |
.page('http://localhost:5000'); | |
test('Test', async (t) => { | |
await t | |
.expect(title.innerText).eql('My Todo List') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Selector } from 'testcafe'; | |
const title = Selector('h4'); | |
fixture('Test') | |
.page('http://localhost:5000'); | |
test('Test', async (t) => { | |
await t | |
.expect(title.innerText).eql('My Todo List') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const maxChar = str => { | |
const myStr = str.toLowerCase(); | |
const charMap = {}; | |
let max = 0; | |
let maxChar = ''; | |
for (let char of myStr) { | |
if (!charMap[char]) { | |
charMap[char] = 1; | |
} else { |