Click here to Skip to main content
14,383,511 members

JavaScript

 
AnswerRe: How can I avoid the phenomenon of asynchronous code using promises and async/await? Pin
Richard Deeming18-Nov-19 8:47
mveRichard Deeming18-Nov-19 8:47 
Questionclient's windows login name Pin
kishor kumar S H17-Nov-19 0:47
memberkishor kumar S H17-Nov-19 0:47 
AnswerRe: client's windows login name Pin
Eddy Vluggen17-Nov-19 1:41
mveEddy Vluggen17-Nov-19 1:41 
AnswerRe: client's windows login name Pin
Nathan Minier18-Nov-19 2:40
professionalNathan Minier18-Nov-19 2:40 
GeneralRe: client's windows login name Pin
kishor kumar S H18-Nov-19 22:49
memberkishor kumar S H18-Nov-19 22:49 
GeneralRe: client's windows login name Pin
Nathan Minier19-Nov-19 1:45
professionalNathan Minier19-Nov-19 1:45 
GeneralRe: client's windows login name Pin
kishor kumar S H23-Nov-19 18:54
memberkishor kumar S H23-Nov-19 18: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 12:20
memberMember 1465076510-Nov-19 12: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 23:23
protectorRichard MacCutchan10-Nov-19 23:23 
QuestionGetting this following error: compare.js:1 Uncaught Error: Cannot find module 'ember' Pin
simpledeveloper5-Nov-19 10:26
membersimpledeveloper5-Nov-19 10:26 
SuggestionRe: Getting this following error: compare.js:1 Uncaught Error: Cannot find module 'ember' Pin
jkirkerx5-Nov-19 12:47
professionaljkirkerx5-Nov-19 12:47 
GeneralRe: Getting this following error: compare.js:1 Uncaught Error: Cannot find module 'ember' Pin
simpledeveloper5-Nov-19 13:14
membersimpledeveloper5-Nov-19 13:14 
QuestionLoading of a td value using another td value in Ember hbs file Pin
simpledeveloper4-Nov-19 12:32
membersimpledeveloper4-Nov-19 12:32 
GeneralRe: Loading of a td value using another td value in Ember hbs file Pin
jkirkerx5-Nov-19 13:06
professionaljkirkerx5-Nov-19 13:06 
GeneralRe: Loading of a td value using another td value in Ember hbs file Pin
simpledeveloper5-Nov-19 13:09
membersimpledeveloper5-Nov-19 13:09 
Questionweb development Pin
Member 142901874-Nov-19 3:14
memberMember 142901874-Nov-19 3:14 
AnswerRe: web development Pin
phil.o4-Nov-19 3:18
mvephil.o4-Nov-19 3:18 
GeneralRe: web development Pin
Richard MacCutchan4-Nov-19 3:26
protectorRichard MacCutchan4-Nov-19 3:26 
GeneralRe: web development Pin
phil.o4-Nov-19 3:55
mvephil.o4-Nov-19 3:55 
GeneralRe: web development Pin
F-ES Sitecore4-Nov-19 23:40
mveF-ES Sitecore4-Nov-19 23:40 
AnswerRe: web development Pin
Pete O'Hanlon5-Nov-19 1:03
protectorPete O'Hanlon5-Nov-19 1:03 
QuestionProblem with Geolocation Pin
Member 146374312-Nov-19 11:48
memberMember 146374312-Nov-19 11:48 
AnswerRe: Problem with Geolocation Pin
A_Griffin2-Nov-19 12:23
memberA_Griffin2-Nov-19 12:23 
QuestionProblem with Geolocation Pin
Member 1463743128-Oct-19 14:50
memberMember 1463743128-Oct-19 14:50 
AnswerRe: Problem with Geolocation Pin
Nathan Minier29-Oct-19 2:31
professionalNathan Minier29-Oct-19 2: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.