ExtendedJS

Developer
Size
1,705 Kb
Views
10,120

How do I make an extendedjs?

What is a extendedjs? How do you make a extendedjs? This script and codes were developed by Leonardo on 01 October 2022, Saturday.

ExtendedJS Previews

ExtendedJS - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>extendedJS</title>
</head>
<body> <script src="js/index.js"></script>
</body>
</html>

ExtendedJS - Script Codes JS Codes

// Code goes here
Boolean.prototype.ifTrue = function(action){ this == true && action(); return this;
}
Boolean.prototype.otherwise = function(action){ action(); return this;
}
Function.prototype.whileTrue = function whileTrue(test, action){ Boolean(test()).ifTrue(action)
}
Function.prototype.tryme = function tryme(fnCatch, ...args){ try { this(); return true; } catch(err){ fnCatch(err, ...args); return false; }
}
Function.prototype.memonaize = function(){ var theFunction = this; var cache = {}; return function(a, b){ cache[a+'+'+b] = cache[a+'+'+b] || theFunction(a, b); return cache[a+'+'+b]; }
}
function explota(){ console.log(noExiste);
}
function sumar(a, b){ console.log('calculando ', a,b); return a+b;
}
var sumar = sumar.memonaize();
var result = sumar(2,2);
var result2 = sumar(2,2);
explota .tryme(function(err, ...args){ console.log('no pasa nada...', ...args) }, 22, 30) .ifTrue(function(){ console.log('vamo lo pibe') }) .otherwise(function(){ console.log('se pudrió la momia') })
ExtendedJS - Script Codes
ExtendedJS - Script Codes
Home Page Home
Developer Leonardo
Username llewan
Uploaded October 01, 2022
Rating 3
Size 1,705 Kb
Views 10,120
Do you need developer help for ExtendedJS?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Leonardo (llewan) Script Codes
Create amazing blog posts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!