Knowledge Walls
Ammu
Hyderabad, Andhra Pradesh, India
Passcode:
Variable in Examples of Javascript 1
528 Views
scope
<!DOCTYPE html>
    <html lang="en-US">
    <head>
        <meta charset="UTF-8">
        <title>heloo</title>
        
    </head>
    <body>
        <script>
         var d=10;
          function num(a,b)
            {
                var c;
                c=a+b;
                document.write("Sum=",+c);
                console.log(d);  
            }
            
            num(1,2);
            console.log(d);//global 
            console.log(c);//local
        </script>
    </body>
</html>
Next Topics
Next lessons of current book.
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Previous Topics
Previous lessons of current book.
Examples of Javascript 1
Examples of Javascript 1
Best Lessons of "Javascript 1"
Top lessons which are viewed more times.
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details