What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-27 21:26:03
javascript anagram check
const areAnagram = (str1, str2) => str1.toLowerCase().split('').sort().join('') === str2.toLowerCase().split('').sort().join(''); // Examples areAnagram('listen', 'silent'); // true areAnagram('they see', 'the eyes'); // true areAnagram('n... Add solution -
PHP 2021-09-26 16:42:04
symfony get post params
use Symfony\Component\HttpFoundation\Request; $request = Request::createFromGlobals(); // the URI being requested (e.g. /about) minus any query parameters $request->getPathInfo(); // retrieves $_GET and $_POST variables respectively $request->que... Add solution -
Python 2021-09-25 17:11:02
determine gievn input upper or lower case in python
# Python Program to check character is Lowercase or Uppercase ch = input("Please Enter Your Own Character : ") if(ch.isupper()): print("The Given Character ", ch, "is an Uppercase Alphabet") elif(ch.islower()): print... Add solution -
Javascript 2021-09-23 11:47:04
jquery validation engine example for file upload allowed extension
<script> ;(function($) { $('input#submit').click(function() { var file = $('input[type="file"]').val(); var exts = ['doc','docx','rtf','odt']; // first check if file field has any value if ( file ) { /... Add solution