Posts

diwali

Image
Happy Diwali - Special Wishes for You Happy Diwali Greetings की ओर से Happy Diwali IN ADVANCE May the light of Diwali fill your home with happiness and joy. We wish you a Diwali full of brightness, positivity, and success. की ओर से HAPPY Diwali IN ADVANCE Wishing you a Diwali that's filled with the warmth of love, the joy of sharing, and the glow of divine blessings. May you have a sparkling Diwali! ...

text to speech

 <!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <title>Text to Speech Generator</title>     <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">     <link href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css" rel="stylesheet">     <style>         body {             background-color: #f0f4f8;             padding: 20px;         }         .header {             text-align: center;             margin-bottom: 20px;         }         .voice-buttons {            ...

Create Table in Functions

  function tbles ( n ){     for ( let i = n ; i <= n * 10 ; i += n ){         console . log ( i );     } } tbles ( 7 )

how to find average no in function

  function caAvg ( a , b , c ) {     let avg = ( a + b + c ) / 3     console . log ( avg ); } caAvg ( 2 , 4 , 7 )

Guess The Number Game Js

  let max = prompt ( "enter the number" ) console . log ( max ); const random = Math . floor ( Math . random () * 5 ) let guess = prompt ( "enter the correct number" ) while ( true ){     if ( guess == "quit" ){         console . log ( "user quit" );         break ;     }     if ( guess == random ){         console . log ( "you are write" );         break ;     }     else if ( guess < random ){         guess = prompt ( "your guess was to small" )     }         else {         guess = prompt ( "your guess was to Large" )       }     // else {     //     guess = prompt("your guess was wrong please try again")     // } }

random interger generator

 let step1 = Math.random() console.log(step1) let step2 = step1 * 10 console.log(step2) let step3 = Math.floor(step2) console.log(step3) let step4 = step3 + 1 console.log(step4) ======================================= Easy way Math.floor(Math.random()*100) + 1

Make notepad with dom

  <! DOCTYPE html > < html > < head >   < meta charset = "utf-8" >   < meta name = "viewport" content = "width=device-width" >   < title > replit </ title >   < link href = "style.css" rel = "stylesheet" type = "text/css" /> </ head > < body > < h1 > My Text Editor </ h1 > < p ></ p > < input placeholder = "type something" id = "text" >   < script src = "index.js" ></ script > </ body > </ html > let inp = document . querySelector ( "#text" ) let p = document . querySelector ( "p" ) inp . addEventListener ( "input" , function (){     console . log ( inp . value );     p . innerText = inp . value })