
Search In
If you redeclared a function parameter in the function block using a var. This is a naming conflict and javascript gives you a warning "TypeError: variable "x" redeclares argument"
This warning occurs in strict mode only. In non
#NiceHexSpiral.py
import turtle
colours=['red','purple','blue','green','yellow','orange']
t=turtle.pen ()
turtle.bgcolor ('black')
for x in range (360):
t.pencolor (colors[x%6])
t.forward(x)
t.l
There are following types of operators in JavaScript.
1- Arithmetic Operators ( +,-,*,/,%,++,-- )
<script>
var a= 1;
var b = 2;
var c = a + b;
document.getElementById("demo").innerHTML = c;
</script>
2- Comparison (Relational) Operato
In this example user will have facility to add more input fields in form dynamically similarly user will also have facility to remove dynamic input fields so once user click remove link it removes the current input field by using its corresponding
With the help of following code you can divide UIImage into equal parts w.r.t number of row and number of column.
Create a category of UIImageView and UImage and write the following method respectively in them.
-(NSArray *)divideImageViewInImage:(i
Mac OS X wants to use system keychain when compiling the xcode project
"Follow below steps"
1.open your key chain access.
2.on top left corner unlock the key chain (if it is locked).
3.click system from top left corner.
4.then click your
In the below example I have created Animate Bitmap program. By using animated bitmap function we will get the position and distance along a path. In below, code will animate image on screen. In my below code I have clearly describe how to make Anima
Program to check whether a number is Armstrong Number or not:
Armstrong number is a positive number whose sum of cubes of all individual digits is equal to the number itself. Like 371(3x3x3+7x7x7+1x1x1=371) is an armstrong number as the sum of cubes
We can add animation to view using CABasicAnimation. Here we are adding bounce effect to UIImageView.
The following code will show the bounce effect in the UIImageView at y-axis:-
CGPoint origin = self.imgView.center; // self.imgView is the out
Hello Readers! In this blog we are going to focus on the sorting method of an array in javascript. We use sort() method to sort the array in Javascript. The possible order in which an array can be sorted can be either in ascending or descending, alph
