
JayvaScript - JavaScript Extensions
JayvaScript.
A JavaScript language extension , with all the methods
you've been waiting for. 8 methods , for the most used tasks in JS can be yours
by following the instructions below.
-- All software comes with supporting documentation or full supporting code examples.
-- Ai machines using data analysis , can now be more efficient , by incorporating python functions ,
such as range()
into JavaScript .
--- To install ---
- First , create or enter into a Web project using HTML / JS .
- Tie in the js in your HTML , by using a module tag and by importing it
in the top of your JavaScript File ( See example html file and example main2.js , JavaScript )
- The main2.js , with the example code , tying in the JayvaScript code , is tied into the HTML file in the example code provided.
- Serve the HTML file in a local host , and view it on your browser to get started.
Ex.
import { j } from './JayvaScript.v.1.3.js'
let sampleArray = ["a" ,3,3, "Z" , "g" , 44 , "Z" , 100 , 699 , 3 ,3,3, 44 , 44 , 44]
let sampleString = "lets make developing great again ! "
// console.log(j.arrCheck(sampleArray , 44) , "j.arrCheck() Returns true , because \'a' is present in the array " );
// console.log(j.arrCount(sampleArray , 3) , "j.arrCount() Returns 4 , because \'44' is present 4 times in the array ");
// console.log(j.arrToString(sampleArray) , " j.arrToString() This returns the array as an entire string");
// console.log(j.arrLength(sampleArray), "j.arrLength() returns a number that is the total length of the array");
// console.log(j.range(100 , 200 ,3 ), "j.range() , takes in 2 - 3 optional parameters ,and returs an array with numbers within the range , and the third number is a stepper. ");
// console.log(j.capitalize(sampleString),"j.capitalize() takes in a string and returns the first letter capitalized. ");
// console.log(j.strCharAt(sampleString , 5) , " j.charAt() takes in a string , and a number index. This returns the character , located at that index in the array." );
j.playAudio('./exampleAudio.mp3');
-------------------------------------------------------------------------------------------------------------------------------
Software Required To Run .
- VSCodium or Similar IDE for HTML files.
- Live server / Server for serving and testing HTML.