What is output if the following JavaScript program is executed by a typical web browser? Explain. var i=5; function duh() { var i; window.i=6; } duh(); window.alert(i); Q3:- To what does the following JavaScript expression evaluate? Explain in detail how JavaScript arrives at this result. Number(“007”) == “007
1: Write difference between CSS and XLT? /5 Q2:- What is output if the following JavaScript program is executed by a typical web browser? Explain. var i=5; function duh() { var i; window.i=6; } duh(); window.alert(i); Q3:- To what does the following JavaScript expression evaluate? Explain in detail how JavaScript arrives at this result. Number(“007”) == “007
Department of Information Technology
Govt. College Women University Faisalabad
Final Term Spring 2020
Assignment 1
Course Title: Web Technologies Course Code: ICT-404
Credit Hours: 3(2-1) Class: BS (IT) 4th , EB
Teacher Name: Kiran Munir Total Marks: 10
Assignment 1 Marks: 10 Submission Date: 7th July
Q1: Write difference between CSS and XLT? /5
Q2:- What is output if the following JavaScript program is executed by a typical web browser?
Explain.
var i=5;
function duh()
{
var i;
window.i=6;
}
duh();
window.alert(i);
Q3:- To what does the following JavaScript expression evaluate? Explain in detail how JavaScript arrives at this result.
Number(“007”) == “007”