wdsacademy
Sunday, July 6, 2025
Saturday, July 5, 2025
Javascript Variable (Const , Let , Var) | Complete javascript series
Video link : Go to video
Complete Code :
<script>
// var x = 20;
// var x = 30;
// document.write(x)
// const x = 20;
// x = 30;
// document.write(x)
// let x = 50
// x = 30
// document.write(x)
var x = 40;
const y = 90;
let z = 80
document.write(window.x);
document.write(window.y);
document.write(window.z);
// window is an object used to describe variable globally.
</script>
Tuesday, July 1, 2025
Pure js Quantum Simulation | Qubit program
Code :
<button type="button" onclick="simulate()">Measure Qubit</button>
<div id="result">Ready.......</div>
<script>
function simulate(){
const rand = Math.random();
const result = rand < 0.5 ? '0' : '1';
document.getElementById("result").textContent="Measured :"+ result;
}
</script>
Sunday, June 29, 2025
Random Quotes Generator
Code:
<script>
function getq(){
const quotes = ["A","B","C","D","E","F"];
const colr= ["red","green","black","pink"];
var x = Math.floor(Math.random()*quotes.length);
document.getElementById("show").innerText = quotes[x];
document.getElementById("show").style.backgroundColor = colr[x];
document.getElementById("show").style.color = "white";
// alert(quotes[4]);
}
</script>
<div id="show"></div>
<input type="button" onclick="getq()" value="Generate Quotes">
See video - Go to video
Tuesday, June 24, 2025
Variable , Assign multiple variable in python with short program
See video - Go to video
Code :
#variable
x = 7
y = 5
z = 9
print(x+y+z)
#assign multiple variable
x,y,z = "hello","phpecho","please like"
print(x,y,z)
x,y,z = 3,5.9,9.1
print(x+y+z)
#variable swaping program
p = 9
q = 8
result = str(p)+str(q) #str show value as a text
print("The number was",result)
d = p # d is the temporary varibale
p = q
q = d
result = str(p)+str(q)
print("The reverse of number is", result)
Saturday, June 21, 2025
Wednesday, June 18, 2025
Thursday, May 29, 2025
Wednesday, May 28, 2025
Our Latest Products
Boutique Billing Software
ERP
Contact - https://websitedevelopmentservices.in/contact
Call us - +91-7080234447
Subscribe to:
Posts (Atom)
-
index.php <?php $url = "your url" ; $web = curl_init (); curl_setopt ( $web ,CURLOPT_URL, $url ); curl_setopt ( $web ,CURLOPT...
-
index.html file: <html> <head> <title> Advanced Js Cart </title> <link rel = "styleshe...