Click here to Skip to main content
14,661,615 members
Home » Discussions » JavaScript
   

JavaScript

 
AnswerRe: How can I avoid the phenomenon of asynchronous code using promises and async/await? Pin
Richard Deeming18-Nov-19 7:47
mveRichard Deeming18-Nov-19 7:47 
Questionclient's windows login name Pin
kishor kumar S H16-Nov-19 23:47
Memberkishor kumar S H16-Nov-19 23:47 
AnswerRe: client's windows login name Pin
Eddy Vluggen17-Nov-19 0:41
professionalEddy Vluggen17-Nov-19 0:41 
AnswerRe: client's windows login name Pin
Nathan Minier18-Nov-19 1:40
professionalNathan Minier18-Nov-19 1:40 
GeneralRe: client's windows login name Pin
kishor kumar S H18-Nov-19 21:49
Memberkishor kumar S H18-Nov-19 21:49 
GeneralRe: client's windows login name Pin
Nathan Minier19-Nov-19 0:45
professionalNathan Minier19-Nov-19 0:45 
GeneralRe: client's windows login name Pin
kishor kumar S H23-Nov-19 17:54
Memberkishor kumar S H23-Nov-19 17:54 
Question!!Please Help!! Student Needs Help It Shows me exercise 2 is correct but exercise 1 is not defined JS assign 3 and 13 Pin
Member 1465076510-Nov-19 11:20
MemberMember 1465076510-Nov-19 11:20 
// ------- Please begin your work below this line: -------
function exerciseOne(){
// In this exercise, write a simple 'for loop' that starts the variable 'i' at 0 and
// increases i until it reaches 6.
// Fill in the blanks in the parentheses, and then console.log(i) inside of the for loop
(;;)
for(let i=0; i < 7; i++){
console.log("This is i:",i);
}
console.log(str);

// Please write your answer in the line above.
}

}

function exerciseTwo(){
let count = 0;
// In this exercise write your own for loop (you can look at the syntax above).
// It should loop 10 times.
// You are given a variable called: count .
// For each loop reassign count to the current value of count + 1 .
for (var i = 0; i < 10; i++) {
count ++;
}



//Please write your answer in the line above.
return count;
}


//Assignment 13 exercise 1 is showing correct but 2 is undefined

function ClassOne(name, pw, mail){
// Exercise One: In this exercise you will be creating your own class!
// You are currently in the class, you are given three strings, name, pw, and mail.
// You need to create three properties on this class.
// Those properties are: 'username', 'password', and 'email'
// Set the value of username to name,
// Set the value of password to pw,
// Set the value of email to mail
this.username = name;
this.password = pw;
this.email = mail;
}

// Note: Remember you DO NOT need to return anything in a class!


function ClassTwo(name, pw, mail){
// Exercise Two: Now that you have created your own class,
// you will create a class with a method on it.
// In this class create 4 properties: username, password, email, and checkPassword.
// Set the value of username to name,
// Set the value of password to pw,
// Set the value of email to mail
// Set the value of checkPassword to a function.
// The checkPassword function takes a string as it's only argument.
// Using the 'this' keyword check to see if the password on the class is the same as
// the string being passed in as the parameter. Return true or false.
this.username = name;
this.password = pw;
this.email = mail;
this.checkPassword = function(){}
if (this.checkPassword === pw){
return true;

}
}
AnswerRe: !!Please Help!! Student Needs Help It Shows me exercise 2 is correct but exercise 1 is not defined JS assign 3 and 13 Pin
Richard MacCutchan10-Nov-19 22:23
mveRichard MacCutchan10-Nov-19 22:23 
QuestionGetting this following error: compare.js:1 Uncaught Error: Cannot find module 'ember' Pin
simpledeveloper5-Nov-19 9:26
Membersimpledeveloper5-Nov-19 9:26 
SuggestionRe: Getting this following error: compare.js:1 Uncaught Error: Cannot find module 'ember' Pin
jkirkerx5-Nov-19 11:47
professionaljkirkerx5-Nov-19 11:47 
GeneralRe: Getting this following error: compare.js:1 Uncaught Error: Cannot find module 'ember' Pin
simpledeveloper5-Nov-19 12:14
Membersimpledeveloper5-Nov-19 12:14 
QuestionLoading of a td value using another td value in Ember hbs file Pin
simpledeveloper4-Nov-19 11:32
Membersimpledeveloper4-Nov-19 11:32 
GeneralRe: Loading of a td value using another td value in Ember hbs file Pin
jkirkerx5-Nov-19 12:06
professionaljkirkerx5-Nov-19 12:06 
GeneralRe: Loading of a td value using another td value in Ember hbs file Pin
simpledeveloper5-Nov-19 12:09
Membersimpledeveloper5-Nov-19 12:09 
Questionweb development Pin
Member 142901874-Nov-19 2:14
MemberMember 142901874-Nov-19 2:14 
AnswerRe: web development Pin
phil.o4-Nov-19 2:18
mvephil.o4-Nov-19 2:18 
GeneralRe: web development Pin
Richard MacCutchan4-Nov-19 2:26
mveRichard MacCutchan4-Nov-19 2:26 
GeneralRe: web development Pin
phil.o4-Nov-19 2:55
mvephil.o4-Nov-19 2:55 
GeneralRe: web development Pin
F-ES Sitecore4-Nov-19 22:40
mveF-ES Sitecore4-Nov-19 22:40 
AnswerRe: web development Pin
Pete O'Hanlon5-Nov-19 0:03
subeditorPete O'Hanlon5-Nov-19 0:03 
QuestionProblem with Geolocation Pin
Member 146374312-Nov-19 10:48
MemberMember 146374312-Nov-19 10:48 
AnswerRe: Problem with Geolocation Pin
A_Griffin2-Nov-19 11:23
MemberA_Griffin2-Nov-19 11:23 
QuestionProblem with Geolocation Pin
Member 1463743128-Oct-19 13:50
MemberMember 1463743128-Oct-19 13:50 
AnswerRe: Problem with Geolocation Pin
Nathan Minier29-Oct-19 1:31
professionalNathan Minier29-Oct-19 1:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.