Friday, December 25, 2020

Lotto App|Random Number App|Javascript app

 Random Number App: In this tutorial you will make app similar to Lottery or pick 3 number app. It is fun way to make app . You will use HTML, CSS and JavaScript . In JavaScript you will use Random generator and DOM (Document Object Model). How these topics go to gather and by using Event what you make. Here is source code and video for it. 


Source Code: 

<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
            bordersolid 2px black;



    <div id="container">
        <h1>Lotto Game:</h1>
        <input type="text" id ="one">
        <input type="text" id ="two">
        <input type="text" id ="three"><br>
        <button id ="submit">Click</button>

        var randonedocument.querySelector("#one")
        var randtwodocument.querySelector("#two")
       var randthreedocument.getElementById("three")
       var submit =document.getElementById("submit")


       function numberone(){
       function numbertwo(){
       function numberthree(){


java switch statement | Java Tutorial For Beginners

 Switch statement is alternative and more cleaner way to write code if we have more than two options. we can use else if, this is better way...