/* CSCI E-3 Introduction to Web Programming Using Javascript
* Fall 2016
*
* 1. Assignments Practice Set
*
*/
"use strict";
/* function with result
*/
function Check(result)
{
/* variable with number and maths*/
// Insert your code here
var valid ="";
/* loops through a block of code a number of times
/* Statement 1 sets a variable before the loop starts (var i = 0).*/
/* Statement 2 defines the condition for the loop to run (i must be less than result).*/
/* Statement 3 increases a value (i++) each time the code block in the loop has been executed.*/
// Insert your code here
for ()
/* The charAt() method returns the specified character from a string.
*An integer between 0 and 1-less-than the length of the string. If no index is provided, charAt() will use 0. A string representing the character at the specified index; empty string if index is out of range. Characters in a string are indexed from left to right. The index of the first character is 0, and the index of the last character in a string called stringName is stringName.length - 1. If the index you supply is out of range, JavaScript returns an empty string. If no index is provided to .charAt(), 0 will be used as default. */
/* The indexOf() method returns the index within the calling String object of the first occurrence of the specified value, starting the search at fromIndex. Returns -1 if the value is not found.*/
// Insert your code here - definite here indexOf
if (valid.indexOf() return false;
return true;
}
/* function put out result*/
// Insert your code here with window.document.calculator.Display.value
function result() {
var x = 0;
if (Check(window.document.calculator.Display.value))
x = eval(window.document.calculator.Display.value);
// Definite your code here
}
/* function edit character */
function edit(character) {
window.document.calculator.Display.value =
// Definite your code here
}
/* function special math Math.sqrt(x);*/
function Specialfunction(Funktion)...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.