Quetion regarding local and global variable in javascript
- by caramel1991
Today,I started to code a page that prompt the user to choose their PC spec,and the code is as follow
<html>
<title>Computer Specification Chooser</title>
<head>
<script type="text/javascript">
var compSpec = document.compChooser;
function processorUnavailable_onclick()
{
alert("Sorry that processor speed is…