Skip to content

Instantly share code, notes, and snippets.

View mowamed's full-sized avatar
🏠
Working from 127.0.0.1

Bakayoko Mohamed mowamed

🏠
Working from 127.0.0.1
  • Abidjan, Côte d'Ivoire
View GitHub Profile
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example - example-guide-concepts-1-production</title>
<script src="//code.angularjs.org/snapshot/angular.min.js"></script>
@mowamed
mowamed / reverse a string in javascript.js
Created September 5, 2017 15:08
reverse a string in javascript created by mowamed - https://repl.it/KiGR/0
function reverseString(str) {
arr = str.split('');
newarr = arr.reverse();
str = newarr.join('');
return str;
}
reverseString("hello");
@mowamed
mowamed / palindrome.js
Created July 28, 2017 23:22
palindrome created by mowamed - https://repl.it/Jn8h/0
function palindrome(str) {
// Good luck!
var newStr = str.replace(/\d|\s|\W|_/g, '');
newStr = newStr.toLowerCase();
var myArray = newStr.split('');
if (myArray[0] == myArray[myArray.length - 1]) {