Mohammad Towhidul Islam

    23-Nov-24 05:17:17 pm

    Useful Array Functions: JavaScript

    1. map() 2. forEach() 3. find() 4. filter() 5. sort() 6. reduce() 7. includes() 8. splice() 9. concat() 10. indexOf() 11. push() 12. pop() 13. shift() 14. unshift() 15. keys() 16. values() 17. join() 18. isArray() 19. at() 20. of() 21. reverse() 22. entries() 1 map() &...

    Read More


    Mohammad Towhidul Islam

    23-Nov-24 12:22:30 pm

    Accessible Rich Internet Applications (ARIA)

    Accessible Rich Internet Applications (ARIA) is a set of roles and attributes that define ways to make web content and web applications (especially those developed with JavaScript) more accessible to people with disabilities. It supplements HTML so that interactions and widgets commonly used ...

    Read More


    Md.Shahidul Islam

    22-Nov-24 07:23:43 pm

    Fundamentals of a computer/Limitation of a computer:

    01 Computer can do arithmetic [+ - / * mod] operations.02 Computer can store/transfer/remove/append/replace data in its memory. 03 Computer can read in/input or write out/output data using its functions from data source (inpu...

    Read More


    Mohammad Towhidul Islam

    18-Nov-24 06:24:28 pm

    JavaScript Object Oriented Programming Fun

    ball.js class Ball { //properties radius; color; x; y; speed; //constructor constructor(x, y, radius, color, speed) { this.x = x; this.y = y; this.radius = radius; this.color = color; this.speed = speed; } //fun...

    Read More


    Mohammad Towhidul Islam

    18-Nov-24 02:14:37 pm

    JavaScript setTimeout Example

    HTML <div id="output"></div> CSS <style> #output{ width: 200px; word-wrap: break-word; } </style> JavaScript <script> document.addEventListener('DOMContentLoaded',(e)=>{ let output=...

    Read More


    Mohammad Towhidul Islam

    17-Nov-24 04:40:39 pm

    OOP in JavaScript class with an example

    Step 1 : Define a class name Ball class Ball{ //properties //constructor //functions } Step 2 : Add some ball properties in the class class Ball{ //properties radius; color; x; y; speed; //constructor //funct...

    Read More


    Mohammad Towhidul Islam

    17-Nov-24 04:33:10 pm

    Find the largest number among three numbers.

    let a=parseFloat(prompt("Enter first number")); let b=parseFloat(prompt("Enter second number")); let c=parseFloat(prompt("Enter third number")); if(a>b){ if(a>c){ document.write(a); }else{ document.write(b); } ...

    Read More


    Mohammad Towhidul Islam

    17-Nov-24 04:27:48 pm

    Find largest number between two numbers

    let a=parseFloat(prompt("Enter first value")); let b=parseFloat(prompt("Enter second value")); if(a>b){ document.write(a); }else{ document.write(b); } ...

    Read More


    Mohammad Towhidul Islam

    07-Oct-24 05:08:46 pm

    Sending asynchronous ajax request through Promise API in JavaScript

    <script> //Show() //ajax1(); async function Show(){ let result= await fetch("data.txt"); let r=await result.text(); console.log(r); document.body.textContent=r; } function ajax(){ fet...

    Read More


    Mohammad Towhidul Islam

    02-Dec-22 05:10:31 pm

    Ajax Request with bearer Token

    var url = "https://yourUrl"; var bearer = 'Bearer ' + bearer_token; fetch(url, { method: 'GET', withCredentials: true, credentials: 'include', headers: { 'Authorization': bearer, 'X-FP...

    Read More


First123Last
1 of 9 pages
Copyright © 2024. Powered by Intellect Software Ltd